LDRA Testbed ® Quality Review Report

Group : qrs_03





Report Production Report Configuration Analysis phases
  • C/C++ LDRA Testbed Version: 9.4.1
  • Report Produced On: Thu Jun 27 2024 at 11:52:04
  • Metrics Data File: C:\LDRA_Toolsuite\metpen.dat
  • Report Format: By Metric
  • Procedures Reported: All Procedures
  • Show Metric Passes: Yes
  • Show Metric Fails: Yes
  • Reporting Scope: Source file and associated header
  • Static: Yes
  • Complexity: Yes
  • Dataflow: Yes
 





Contents

Table of Source Files in Group

Metrics
Procedure Table

Results




Source Files in Group

Name Last Modification Date
C:\Users\zhang\Desktop\WJ\03\STM32--master\usart.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\timh.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\tim.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\systick.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\system_stm32f10x.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_wwdg.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_usart.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_tim.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_spi.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_sdio.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_rtc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_rcc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_pwr.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_iwdg.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_it.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_i2c.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_gpio.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_fsmc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_flash.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_exti.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_dma.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_dbgmcu.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_dac.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_crc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_cec.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_can.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_bkp.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\stm32f10x_adc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\remote.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\oled.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\mpu6050.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\motor.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\misc.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\main.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\inv_mpu_dmp_motion_driver.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\inv_mpu.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\hcsr04.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\exti.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\encode.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\ctiic.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\core_cm3.c Sun Aug 04 14:34:36 2019
C:\Users\zhang\Desktop\WJ\03\STM32--master\app.c Sun Aug 04 14:34:36 2019



List of Metrics to be Displayed

Reformatted Code Information for File

Procedure Information

Comments Associated with Procedures (% of total)

Ratio of Comments to Executable lines (%)

Complexity Metrics

Halsteads Metrics

Loop/Interval Analysis

LCSAJ and Unreachability

Dataflow Information






Overall Results - Percentage of metrics passing


Total Metrics: 48
Clarity Metrics: 14 (of which 4 are whole file only)
Maintainability Metrics: 11 (of which 7 are whole file only)
Testability Metrics: 15 (of which 7 are whole file only)


File   All Metrics   Clarity   Maintainability   Testability  
           
qrs_03 79 - 81 - 89 - 86 -
 
usart.c 98
1. Comments in Headers
2. Total Comments
- 93
1. Comments in Headers
2. Total Comments
- 100 100
timh.c 94
1. Total comments in ref. Code
2. Average Length of Basic Blocks
3. Comments in Executable Code
4. Comments in Headers
5. Total Comments
- 86
1. Average Length of Basic Blocks
2. Comments in Executable Code
3. Comments in Headers
4. Total Comments
- 100 100
tim.c 94
1. Total comments in ref. Code
2. Average Length of Basic Blocks
3. Declaration Comments/Exe. Lines
4. Comments in Headers
5. Total Comments
- 86
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 100 100
systick.c 96
1. Total comments in ref. Code
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 93
1. Declaration Comments/Exe. Lines
2. Comments in Headers
3. Total Comments
- 100 100
system_stm32f10x.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_wwdg.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_usart.c 68
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Executable ref. Lines
5. Total comments in ref. Code
6. Total reformatted Lines
7. Procedure Exit Points
8. Maximum LCSAJ Density
9. Volume
10. Length
11. Vocabulary
12. Unique Operands
13. Total Operands
14. Total Operators
15. Number of Basic Blocks
16. Executable reformatted Lines
17. Code Comments/Exe. Lines
18. Comments in Headers
19. Total Comments
20. Cyclomatic Complexity
- 79
1. Executable ref. Lines
2. Unique Operands
3. Code Comments/Exe. Lines
4. Comments in Headers
5. Total Comments
- 73
1. Number of Procedures
2. Maximum LCSAJ Density
3. Vocabulary
4. Cyclomatic Complexity
- 73
1. Number of Procedures
2. Procedure Exit Points
3. Maximum LCSAJ Density
4. Total Operands
5. Number of Basic Blocks
6. Executable reformatted Lines
7. Cyclomatic Complexity
-
stm32f10x_tim.c 60
1. Fan Out
2. Reachable LCSAJs
3. Total source Lines
4. Number of Procedures
5. Non-executable ref. Lines
6. Executable ref. Lines
7. Total comments in ref. Code
8. Total reformatted Lines
9. Procedure Exit Points
10. Maximum LCSAJ Density
11. Total LCSAJs
12. Volume
13. Length
14. Vocabulary
15. Unique Operands
16. Total Operands
17. Total Operators
18. Average Length of Basic Blocks
19. Number of Basic Blocks
20. Executable reformatted Lines
21. Code Comments/Exe. Lines
22. Comments in Headers
23. Total Comments
24. Cyclomatic Complexity
25. Knots
- 64
1. Executable ref. Lines
2. Total LCSAJs
3. Unique Operands
4. Average Length of Basic Blocks
5. Code Comments/Exe. Lines
6. Comments in Headers
7. Total Comments
- 55
1. Number of Procedures
2. Maximum LCSAJ Density
3. Total LCSAJs
4. Vocabulary
5. Cyclomatic Complexity
6. Knots
- 60
1. Fan Out
2. Number of Procedures
3. Procedure Exit Points
4. Maximum LCSAJ Density
5. Total LCSAJs
6. Total Operands
7. Number of Basic Blocks
8. Executable reformatted Lines
9. Cyclomatic Complexity
10. Knots
-
 
stm32f10x_spi.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Maximum LCSAJ Density
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Comments in Headers
14. Total Comments
15. Cyclomatic Complexity
- 86
1. Unique Operands
2. Comments in Headers
3. Total Comments
- 82
1. Maximum LCSAJ Density
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Procedure Exit Points
2. Maximum LCSAJ Density
3. Total Operands
4. Cyclomatic Complexity
-
stm32f10x_sdio.c 74
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Total comments in ref. Code
5. Total reformatted Lines
6. Procedure Exit Points
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Comments in Headers
14. Total Comments
15. Cyclomatic Complexity
- 93
1. Unique Operands
2. Comments in Headers
3. Total Comments
- 82
1. Number of Procedures
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Number of Procedures
2. Procedure Exit Points
3. Total Operands
4. Cyclomatic Complexity
-
stm32f10x_rtc.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_rcc.c 74
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Total comments in ref. Code
5. Total reformatted Lines
6. Procedure Exit Points
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Comments in Headers
14. Total Comments
15. Cyclomatic Complexity
- 93
1. Unique Operands
2. Comments in Headers
3. Total Comments
- 82
1. Number of Procedures
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Number of Procedures
2. Procedure Exit Points
3. Total Operands
4. Cyclomatic Complexity
-
stm32f10x_pwr.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_iwdg.c 74
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Comments/Exe. Lines
12. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_it.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_i2c.c 70
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Executable ref. Lines
5. Total comments in ref. Code
6. Total reformatted Lines
7. Procedure Exit Points
8. Volume
9. Length
10. Vocabulary
11. Unique Operands
12. Total Operands
13. Total Operators
14. Number of Basic Blocks
15. Comments in Headers
16. Total Comments
17. Cyclomatic Complexity
- 79
1. Executable ref. Lines
2. Unique Operands
3. Comments in Headers
4. Total Comments
- 82
1. Number of Procedures
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Number of Procedures
2. Procedure Exit Points
3. Total Operands
4. Number of Basic Blocks
5. Cyclomatic Complexity
-
stm32f10x_gpio.c 70
1. Total source Lines
2. Non-executable ref. Lines
3. Executable ref. Lines
4. Total comments in ref. Code
5. Total reformatted Lines
6. Procedure Exit Points
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Number of Basic Blocks
14. Executable reformatted Lines
15. Code Comments/Exe. Lines
16. Comments in Headers
17. Cyclomatic Complexity
- 71
1. Executable ref. Lines
2. Unique Operands
3. Code Comments/Exe. Lines
4. Comments in Headers
- 91
1. Vocabulary
2. Cyclomatic Complexity
- 87
1. Procedure Exit Points
2. Total Operands
3. Number of Basic Blocks
4. Executable reformatted Lines
5. Cyclomatic Complexity
-
stm32f10x_fsmc.c 68
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Maximum LCSAJ Density
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Average Length of Basic Blocks
14. Code Comments/Exe. Lines
15. Comments in Headers
16. Total Comments
17. Cyclomatic Complexity
- 71
1. Unique Operands
2. Average Length of Basic Blocks
3. Code Comments/Exe. Lines
4. Comments in Headers
5. Total Comments
- 82
1. Maximum LCSAJ Density
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Procedure Exit Points
2. Maximum LCSAJ Density
3. Total Operands
4. Cyclomatic Complexity
-
stm32f10x_flash.c 70
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Executable ref. Lines
5. Total comments in ref. Code
6. Total reformatted Lines
7. Procedure Exit Points
8. Volume
9. Length
10. Vocabulary
11. Unique Operands
12. Total Operands
13. Total Operators
14. Average Length of Basic Blocks
15. Comments in Headers
16. Total Comments
17. Cyclomatic Complexity
- 79
1. Executable ref. Lines
2. Unique Operands
3. Average Length of Basic Blocks
4. Comments in Headers
5. Total Comments
- 82
1. Number of Procedures
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Number of Procedures
2. Procedure Exit Points
3. Total Operands
4. Cyclomatic Complexity
-
 
stm32f10x_exti.c 70
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Code Comments/Exe. Lines
13. Total Comments/Exe. Lines
14. Comments in Headers
- 71
1. Unique Operands
2. Code Comments/Exe. Lines
3. Total Comments/Exe. Lines
4. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_dma.c 68
1. Total source Lines
2. Non-executable ref. Lines
3. Executable ref. Lines
4. Total comments in ref. Code
5. Total reformatted Lines
6. Procedure Exit Points
7. Maximum LCSAJ Density
8. Volume
9. Length
10. Vocabulary
11. Unique Operands
12. Total Operands
13. Total Operators
14. Average Length of Basic Blocks
15. Number of Basic Blocks
16. Comments in Headers
17. Total Comments
18. Cyclomatic Complexity
- 71
1. Executable ref. Lines
2. Unique Operands
3. Average Length of Basic Blocks
4. Comments in Headers
5. Total Comments
- 82
1. Maximum LCSAJ Density
2. Vocabulary
3. Cyclomatic Complexity
- 80
1. Procedure Exit Points
2. Maximum LCSAJ Density
3. Total Operands
4. Number of Basic Blocks
5. Cyclomatic Complexity
-
stm32f10x_dbgmcu.c 74
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Comments/Exe. Lines
12. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_dac.c 70
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Maximum LCSAJ Density
7. Volume
8. Length
9. Vocabulary
10. Unique Operands
11. Total Operands
12. Total Operators
13. Total Comments/Exe. Lines
14. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 82
1. Maximum LCSAJ Density
2. Vocabulary
- 80
1. Procedure Exit Points
2. Maximum LCSAJ Density
3. Total Operands
-
stm32f10x_crc.c 74
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Comments/Exe. Lines
12. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_cec.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
stm32f10x_can.c 66
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Executable ref. Lines
5. Total comments in ref. Code
6. Total reformatted Lines
7. Procedure Exit Points
8. Maximum LCSAJ Density
9. Volume
10. Length
11. Vocabulary
12. Unique Operands
13. Total Operands
14. Total Operators
15. Number of Basic Blocks
16. Executable reformatted Lines
17. Comments in Headers
18. Total Comments
19. Cyclomatic Complexity
20. Knots
- 79
1. Executable ref. Lines
2. Unique Operands
3. Comments in Headers
4. Total Comments
- 64
1. Number of Procedures
2. Maximum LCSAJ Density
3. Vocabulary
4. Cyclomatic Complexity
5. Knots
- 67
1. Number of Procedures
2. Procedure Exit Points
3. Maximum LCSAJ Density
4. Total Operands
5. Number of Basic Blocks
6. Executable reformatted Lines
7. Cyclomatic Complexity
8. Knots
-
stm32f10x_bkp.c 70
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Code Comments/Exe. Lines
13. Total Comments/Exe. Lines
14. Comments in Headers
15. Cyclomatic Complexity
- 71
1. Unique Operands
2. Code Comments/Exe. Lines
3. Total Comments/Exe. Lines
4. Comments in Headers
- 91
1. Vocabulary
2. Cyclomatic Complexity
- 87
1. Procedure Exit Points
2. Total Operands
3. Cyclomatic Complexity
-
stm32f10x_adc.c 70
1. Total source Lines
2. Number of Procedures
3. Non-executable ref. Lines
4. Executable ref. Lines
5. Total comments in ref. Code
6. Total reformatted Lines
7. Procedure Exit Points
8. Maximum LCSAJ Density
9. Volume
10. Length
11. Vocabulary
12. Unique Operands
13. Total Operands
14. Total Operators
15. Number of Basic Blocks
16. Executable reformatted Lines
17. Comments in Headers
18. Total Comments
19. Cyclomatic Complexity
- 86
1. Executable ref. Lines
2. Unique Operands
3. Comments in Headers
4. Total Comments
- 73
1. Number of Procedures
2. Maximum LCSAJ Density
3. Vocabulary
4. Cyclomatic Complexity
- 73
1. Number of Procedures
2. Procedure Exit Points
3. Maximum LCSAJ Density
4. Total Operands
5. Number of Basic Blocks
6. Executable reformatted Lines
7. Cyclomatic Complexity
-
remote.c 96
1. Average Length of Basic Blocks
2. Comments in Headers
3. Total Comments
- 93
1. Average Length of Basic Blocks
2. Comments in Headers
3. Total Comments
- 100 93
-
oled.c 89
1. Procedure Exit Points
2. Maximum Interval Nesting
3. Declaration Comments/Exe. Lines
4. Procedure Structured (SPV)
5. Knots
6. Essential Knots
- 86
1. Declaration Comments/Exe. Lines
- 100 93
1. Procedure Exit Points
2. Knots
-
 
mpu6050.c 91
1. Procedure Exit Points
2. Declaration Comments/Exe. Lines
3. Procedure Structured (SPV)
- 86
1. Declaration Comments/Exe. Lines
- 100 93
1. Procedure Exit Points
-
motor.c 94
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 79
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 100 100
misc.c 72
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Operators
12. Total Comments/Exe. Lines
13. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
main.c 74
1. Total source Lines
2. Non-executable ref. Lines
3. Total comments in ref. Code
4. Total reformatted Lines
5. Procedure Exit Points
6. Volume
7. Length
8. Vocabulary
9. Unique Operands
10. Total Operands
11. Total Comments/Exe. Lines
12. Comments in Headers
- 79
1. Unique Operands
2. Total Comments/Exe. Lines
3. Comments in Headers
- 91
1. Vocabulary
- 87
1. Procedure Exit Points
2. Total Operands
-
inv_mpu_dmp_motion_driver.c 89
1. Procedure Exit Points
2. Total Operators
3. Code Comments/Exe. Lines
4. Procedure Structured (SPV)
5. Knots
6. Essential Knots
- 86
1. Code Comments/Exe. Lines
- 100 93
1. Procedure Exit Points
2. Knots
-
inv_mpu.c 62
1. Fan Out
2. File Fan in
3. Reachable LCSAJs
4. Number of Procedures
5. Executable ref. Lines
6. Total reformatted Lines
7. Procedure Exit Points
8. Maximum LCSAJ Density
9. Unreachable LCSAJs
10. Total LCSAJs
11. Volume
12. Length
13. Total Operands
14. Total Operators
15. Number of Basic Blocks
16. Executable reformatted Lines
17. Code Comments/Exe. Lines
18. Declaration Comments/Exe. Lines
19. Comments in Headers
20. Procedure Structured (SPV)
21. Cyclomatic Complexity
22. Knots
23. Essential Cyclomatic Complexity
24. Essential Knots
- 71
1. Executable ref. Lines
2. Total LCSAJs
3. Code Comments/Exe. Lines
4. Declaration Comments/Exe. Lines
5. Comments in Headers
- 36
1. Number of Procedures
2. Maximum LCSAJ Density
3. Unreachable LCSAJs
4. Total LCSAJs
5. Cyclomatic Complexity
6. Knots
7. Essential Cyclomatic Complexity
8. Essential Knots
- 53
1. Fan Out
2. File Fan in
3. Number of Procedures
4. Procedure Exit Points
5. Maximum LCSAJ Density
6. Unreachable LCSAJs
7. Total LCSAJs
8. Total Operands
9. Number of Basic Blocks
10. Executable reformatted Lines
11. Cyclomatic Complexity
12. Knots
-
hcsr04.c 91
1. Total comments in ref. Code
2. Declaration Comments/Exe. Lines
3. Comments in Executable Code
4. Comments in Headers
5. Total Comments
6. Procedure Structured (SPV)
- 86
1. Declaration Comments/Exe. Lines
2. Comments in Executable Code
3. Comments in Headers
4. Total Comments
- 100 100
exti.c 91
1. Total comments in ref. Code
2. Average Length of Basic Blocks
3. Declaration Comments/Exe. Lines
4. Comments in Headers
5. Total Comments
- 86
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 100 93
-
encode.c 96
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 86
1. Average Length of Basic Blocks
2. Declaration Comments/Exe. Lines
3. Comments in Headers
4. Total Comments
- 100 100
ctiic.c 98
1. Procedure Exit Points
- 100 100 93
1. Procedure Exit Points
-
core_cm3.c 90
1. Expansion Factor
2. Total comments in ref. Code
- 75
1. Expansion Factor
- 100 100
 
app.c 91
1. Code Comments/Exe. Lines
2. Declaration Comments/Exe. Lines
3. Comments in Executable Code
4. Total Comments
- 71
1. Code Comments/Exe. Lines
2. Declaration Comments/Exe. Lines
3. Comments in Executable Code
4. Total Comments
- 100 100






File and Procedure Results, Metric by Metric




usart.c


Reformatted Code Information for File (usart.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for usart.c 164 (P) 54 (P) (33%) 77 (P) (47%) 33 (P) (20%) 7 (P) 116 (P) 1.41 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (usart.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
GPIO_Configuration 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
USART_NVICConfig 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
USART_Config 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
USART_DMAConfig 16 (P) 1 (P) 16.00 (F) 1 (P) 1 (P)
USARTInit 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
fputc 11 (P) 4 (P) 2.75 (P) 1 (P) 1 (P)
fgetc 10 (P) 4 (P) 2.50 (P) 1 (P) 1 (P)
           
Total for usart.c 77 (P) 13 (P) 5.92 (P) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (usart.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
GPIO_Configuration 11 (P) 7 (P) (64%) 1 (P) (9%) 3 (P) (27%) 0 (P)
USART_NVICConfig 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
USART_Config 8 (F) 7 (P) (88%) 0 (P) (0%) 1 (P) (13%) 0 (P)
USART_DMAConfig 19 (P) 6 (P) (32%) 0 (P) (0%) 13 (P) (68%) 0 (P)
USARTInit 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
fputc 1 (F) 1 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
fgetc 1 (F) 1 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
Total for usart.c 54 (F) 36 (P) (67%) 1 (P) (2%) 17 (P) (31%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (usart.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
GPIO_Configuration 11 (P) 100 (P) 64 (P) 9 (P) 27 (P)
USART_NVICConfig 8 (P) 88 (P) 88 (P) 0 (F) 0 (F)
USART_Config 11 (P) 73 (P) 64 (P) 0 (F) 9 (P)
USART_DMAConfig 16 (P) 119 (P) 38 (P) 0 (F) 81 (P)
USARTInit 10 (P) 70 (P) 70 (P) 0 (F) 0 (F)
fputc 11 (P) 9 (F) 9 (P) 0 (F) 0 (F)
fgetc 10 (P) 10 (P) 10 (P) 0 (F) 0 (F)
           
Total for usart.c 77 (P) 70 (P) 47 1 (P) 22 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (usart.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
GPIO_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USART_NVICConfig 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USART_Config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USART_DMAConfig 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USARTInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
fputc 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
fgetc 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for usart.c 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (usart.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for usart.c 43 (P) 113 (P) 7 (P) 45 (P) 52 (P) 156 (P) 889 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (usart.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
GPIO_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_NVICConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_DMAConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USARTInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
fputc 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
fgetc 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
           
Total for usart.c 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (usart.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for usart.c 19 (P) 19 (P) 0 (P) 4 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (usart.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
GPIO_Configuration 0 (P) 1 (P) 3 (P)
USART_NVICConfig 0 (P) 1 (P) 2 (P)
USART_Config 0 (P) 1 (P) 3 (P)
USART_DMAConfig 1 (P) 1 (P) 3 (P)
USARTInit 1 (P) 0 (P) 4 (P)
fputc 0 (P) 0 (P) 2 (P)
fgetc 0 (P) 0 (P) 2 (P)
       
Total for usart.c 2 (P) 4 (P) 19 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



timh.c


Reformatted Code Information for File (timh.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for timh.c 66 (P) 27 (F) (41%) 24 (P) (36%) 15 (P) (23%) 3 (P) 51 (P) 1.29 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (timh.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM_Mode_Configuration 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
TIM_NVIC_Configuration 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
TIM1_Configuration 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for timh.c 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (timh.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM_Mode_Configuration 14 (P) 6 (P) (43%) 0 (P) (0%) 8 (P) (57%) 0 (P)
TIM_NVIC_Configuration 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 0 (P)
TIM1_Configuration 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
Total for timh.c 27 (F) 18 (P) (67%) 1 (P) (4%) 8 (P) (30%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (timh.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM_Mode_Configuration 11 (P) 127 (P) 55 (P) 0 (F) 73 (P)
TIM_NVIC_Configuration 7 (P) 100 (P) 86 (P) 14 (P) 0 (F)
TIM1_Configuration 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
           
Total for timh.c 24 (P) 113 (P) 75 4 (P) 33 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (timh.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM_Mode_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM_NVIC_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM1_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for timh.c 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (timh.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for timh.c 11 (P) 32 (P) 2 (P) 10 (P) 12 (P) 43 (P) 154 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (timh.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM_Mode_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_NVIC_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM1_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for timh.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (timh.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for timh.c 5 (P) 5 (P) 0 (P) 1 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (timh.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM_Mode_Configuration 0 (P) 1 (P) 4 (P)
TIM_NVIC_Configuration 0 (P) 1 (P) 1 (P)
TIM1_Configuration 0 (P) 0 (P) 2 (P)
       
Total for timh.c 0 (P) 2 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



tim.c


Reformatted Code Information for File (tim.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for tim.c 73 (P) 35 (F) (48%) 26 (P) (36%) 12 (P) (16%) 3 (P) 56 (P) 1.30 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (tim.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM3_Config 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
TIM3_NVIC_Config 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
TIM3_Init 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for tim.c 26 (P) 3 (P) 8.67 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (tim.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM3_Config 18 (P) 6 (P) (33%) 0 (P) (0%) 12 (P) (67%) 0 (P)
TIM3_NVIC_Config 11 (P) 11 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TIM3_Init 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
Total for tim.c 35 (P) 23 (P) (66%) 0 (P) (0%) 12 (P) (34%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (tim.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM3_Config 13 (P) 138 (P) 46 (P) 0 (F) 92 (P)
TIM3_NVIC_Config 7 (P) 157 (P) 157 (P) 0 (F) 0 (F)
TIM3_Init 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
           
Total for tim.c 26 (P) 135 (P) 88 0 (F) 46 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (tim.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM3_Config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM3_NVIC_Config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM3_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for tim.c 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (tim.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for tim.c 11 (P) 38 (P) 2 (P) 11 (P) 13 (P) 49 (P) 181 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (tim.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM3_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM3_NVIC_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM3_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for tim.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (tim.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for tim.c 5 (P) 5 (P) 0 (P) 1 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (tim.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM3_Config 0 (P) 1 (P) 6 (F)
TIM3_NVIC_Config 0 (P) 1 (P) 1 (P)
TIM3_Init 0 (P) 0 (P) 2 (P)
       
Total for tim.c 0 (P) 2 (P) 9 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



systick.c


Reformatted Code Information for File (systick.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for systick.c 83 (P) 30 (F) (36%) 42 (P) (51%) 11 (P) (13%) 2 (P) 66 (P) 1.26 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (systick.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
delay_us 21 (P) 5 (P) 4.20 (P) 1 (P) 1 (P)
delay_ms 21 (P) 5 (P) 4.20 (P) 1 (P) 1 (P)
           
Total for systick.c 42 (P) 10 (P) 4.20 (P) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (systick.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
delay_us 18 (P) 12 (P) (67%) 0 (P) (0%) 6 (P) (33%) 0 (P)
delay_ms 12 (P) 6 (P) (50%) 0 (P) (0%) 6 (P) (50%) 0 (P)
           
Total for systick.c 30 (P) 18 (P) (60%) 0 (P) (0%) 12 (P) (40%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (systick.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
delay_us 21 (P) 86 (P) 57 (P) 0 (F) 29 (P)
delay_ms 21 (P) 57 (P) 29 (P) 0 (F) 29 (P)
           
Total for systick.c 42 (P) 71 (P) 43 0 (F) 29 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (systick.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
delay_us 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
delay_ms 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for systick.c 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (systick.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for systick.c 34 (P) 37 (P) 7 (P) 13 (P) 20 (P) 71 (P) 306 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (systick.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
delay_us 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
delay_ms 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
           
Total for systick.c 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (systick.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for systick.c 16 (P) 16 (P) 0 (P) 6 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (systick.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
delay_us 0 (P) 0 (P) 0 (P)
delay_ms 0 (P) 0 (P) 0 (P)
       
Total for systick.c 0 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



system_stm32f10x.c


Reformatted Code Information for File (system_stm32f10x.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for system_stm32f10x.c 8167 (F) 1790 (F) (22%) 561 (P) (7%) 5816 (F) (71%) 21 (P) 11347 (F) 0.72 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (system_stm32f10x.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
SystemInit 38 (P) 1 (P) 38.00 (F) 1 (P) 1 (P)
SystemCoreClockUpdate 82 (P) 13 (P) 6.31 (F) 1 (P) 1 (P)
SetSysClock 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
SetSysClockTo72 154 (P) 17 (P) 9.06 (F) 1 (P) 1 (P)
           
Total for system_stm32f10x.c 561 (P) 96 (P) 5.84 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (system_stm32f10x.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
SystemInit 983 (F) 970 (F) (99%) 2 (P) (0%) 11 (P) (1%) 130 (F)
SystemCoreClockUpdate 49 (P) 35 (P) (71%) 3 (P) (6%) 11 (P) (22%) 1 (P)
SetSysClock 7 (F) 5 (P) (71%) 0 (P) (0%) 2 (P) (29%) 2 (P)
SetSysClockTo72 30 (P) 14 (P) (47%) 2 (P) (7%) 14 (P) (47%) 2 (P)
           
Total for system_stm32f10x.c 1780 (P) 1704 (F) (96%) 11 (P) (1%) 65 (P) (4%) 182 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (system_stm32f10x.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
SystemInit 38 (P) 2587 (F) 2553 (F) 5 (P) 29 (P)
SystemCoreClockUpdate 82 (P) 60 (P) 43 (P) 4 (P) 13 (P)
SetSysClock 4 (P) 175 (P) 125 (P) 0 (F) 50 (P)
SetSysClockTo72 154 (P) 19 (P) 9 (P) 1 (P) 9 (P)
           
Total for system_stm32f10x.c 561 (P) 317 (F) 304 2 (P) 12 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (system_stm32f10x.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
SystemInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SystemCoreClockUpdate 8 (F) 6 (P) 0 (P) 1 (P) Yes (P)
SetSysClock 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SetSysClockTo72 4 (P) 7 (P) 0 (P) 1 (P) Yes (P)
           
Total for system_stm32f10x.c 28 (P) 28 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (system_stm32f10x.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for system_stm32f10x.c 813 (F) 24914 (F) 27 (P) 505 (F) 532 (F) 25727 (F) 232965 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (system_stm32f10x.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
SystemInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SystemCoreClockUpdate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SetSysClock 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SetSysClockTo72 3 (P) 1 (P) 5 (P) 2 (P) Yes (P)
           
Total for system_stm32f10x.c 5 (P) 1 (P) 8 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (system_stm32f10x.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for system_stm32f10x.c 107 (P) 105 (P) 2 (P) 9 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (system_stm32f10x.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
SystemInit 0 (P) 0 (P) 1 (P)
SystemCoreClockUpdate 1 (P) 0 (P) 0 (P)
SetSysClock 0 (P) 1 (P) 1 (P)
SetSysClockTo72 0 (P) 1 (P) 0 (P)
       
Total for system_stm32f10x.c 3 (P) 3 (P) 4 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_wwdg.c


Reformatted Code Information for File (stm32f10x_wwdg.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_wwdg.c 8496 (F) 1930 (F) (23%) 403 (P) (5%) 6163 (F) (73%) 25 (P) 11316 (F) 0.75 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_wwdg.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
WWDG_DeInit 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
WWDG_SetPrescaler 35 (P) 5 (P) 7.00 (F) 1 (P) 1 (P)
WWDG_SetWindowValue 16 (P) 1 (P) 16.00 (F) 1 (P) 1 (P)
WWDG_EnableIT 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
WWDG_SetCounter 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
WWDG_Enable 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
WWDG_GetFlagStatus 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
WWDG_ClearFlag 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for stm32f10x_wwdg.c 403 (P) 80 (P) 5.04 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_wwdg.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
WWDG_DeInit 1170 (F) 1170 (F) (100%) 0 (P) (0%) 0 (F) (0%) 191 (F)
WWDG_SetPrescaler 14 (P) 10 (P) (71%) 1 (P) (7%) 3 (P) (21%) 1 (P)
WWDG_SetWindowValue 10 (P) 6 (P) (60%) 1 (P) (10%) 3 (P) (30%) 1 (P)
WWDG_EnableIT 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
WWDG_SetCounter 9 (F) 6 (P) (67%) 1 (P) (11%) 2 (P) (22%) 1 (P)
WWDG_Enable 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
WWDG_GetFlagStatus 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
WWDG_ClearFlag 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_wwdg.c 1920 (P) 1877 (F) (98%) 8 (P) (0%) 35 (P) (2%) 244 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_wwdg.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
WWDG_DeInit 8 (P) 14625 (F) 14625 (F) 0 (F) 0 (F)
WWDG_SetPrescaler 35 (P) 40 (P) 29 (P) 3 (P) 9 (P)
WWDG_SetWindowValue 16 (P) 63 (P) 38 (P) 6 (P) 19 (P)
WWDG_EnableIT 11 (P) 45 (P) 45 (P) 0 (F) 0 (F)
WWDG_SetCounter 18 (P) 50 (P) 33 (P) 6 (P) 11 (P)
WWDG_Enable 18 (P) 39 (P) 33 (P) 6 (P) 0 (F)
WWDG_GetFlagStatus 8 (P) 63 (P) 63 (P) 0 (F) 0 (F)
WWDG_ClearFlag 6 (P) 83 (P) 83 (P) 0 (F) 0 (F)
           
Total for stm32f10x_wwdg.c 403 (P) 476 (F) 466 2 (P) 9 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_wwdg.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
WWDG_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
WWDG_SetPrescaler 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
WWDG_SetWindowValue 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
WWDG_EnableIT 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
WWDG_SetCounter 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
WWDG_Enable 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
WWDG_GetFlagStatus 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
WWDG_ClearFlag 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_wwdg.c 16 (P) 22 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_wwdg.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_wwdg.c 842 (F) 26267 (F) 26 (P) 532 (F) 558 (F) 27109 (F) 247345 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_wwdg.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
WWDG_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_SetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_SetWindowValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_EnableIT 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_SetCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_Enable 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
WWDG_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_wwdg.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_wwdg.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_wwdg.c 79 (P) 77 (P) 2 (P) 6 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_wwdg.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
WWDG_DeInit 0 (P) 0 (P) 1 (P)
WWDG_SetPrescaler 0 (P) 0 (P) 1 (P)
WWDG_SetWindowValue 0 (P) 0 (P) 1 (P)
WWDG_EnableIT 0 (P) 0 (P) 0 (P)
WWDG_SetCounter 0 (P) 0 (P) 1 (P)
WWDG_Enable 0 (P) 0 (P) 1 (P)
WWDG_GetFlagStatus 0 (P) 0 (P) 0 (P)
WWDG_ClearFlag 0 (P) 0 (P) 0 (P)
       
Total for stm32f10x_wwdg.c 2 (P) 1 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_usart.c


Reformatted Code Information for File (stm32f10x_usart.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_usart.c 11444 (F) 2422 (F) (21%) 2490 (F) (22%) 6532 (F) (57%) 46 (F) 12447 (F) 0.92 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_usart.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
USART_DeInit 129 (P) 20 (P) 6.45 (F) 1 (P) 1 (P)
USART_Init 246 (F) 37 (F) 6.65 (F) 1 (P) 1 (P)
USART_StructInit 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
USART_ClockInit 85 (P) 12 (P) 7.08 (F) 1 (P) 1 (P)
USART_ClockStructInit 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
USART_Cmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_ITConfig 168 (P) 30 (P) 5.60 (P) 1 (P) 1 (P)
USART_DMACmd 75 (P) 13 (P) 5.77 (P) 1 (P) 1 (P)
USART_SetAddress 47 (P) 6 (P) 7.83 (F) 1 (P) 1 (P)
USART_WakeUpConfig 57 (P) 8 (P) 7.12 (F) 1 (P) 1 (P)
           
USART_ReceiverWakeUpCmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_LINBreakDetectLengthConfig 57 (P) 8 (P) 7.12 (F) 1 (P) 1 (P)
USART_LINCmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_SendData 45 (P) 6 (P) 7.50 (F) 1 (P) 1 (P)
USART_ReceiveData 42 (P) 6 (P) 7.00 (F) 1 (P) 1 (P)
USART_SendBreak 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
USART_SetGuardTime 31 (P) 4 (P) 7.75 (F) 1 (P) 1 (P)
USART_SetPrescaler 44 (P) 6 (P) 7.33 (F) 1 (P) 1 (P)
USART_SmartCardCmd 51 (P) 9 (P) 5.67 (P) 1 (P) 1 (P)
USART_SmartCardNACKCmd 51 (P) 9 (P) 5.67 (P) 1 (P) 1 (P)
           
USART_HalfDuplexCmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_OverSampling8Cmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_OneBitMethodCmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_IrDAConfig 57 (P) 8 (P) 7.12 (F) 1 (P) 1 (P)
USART_IrDACmd 65 (P) 11 (P) 5.91 (P) 1 (P) 1 (P)
USART_GetFlagStatus 139 (P) 24 (P) 5.79 (P) 1 (P) 1 (P)
USART_ClearFlag 87 (P) 13 (P) 6.69 (F) 1 (P) 1 (P)
USART_GetITStatus 174 (P) 32 (F) 5.44 (P) 1 (P) 1 (P)
USART_ClearITPendingBit 100 (P) 15 (P) 6.67 (F) 1 (P) 1 (P)
           
Total for stm32f10x_usart.c 2490 (P) 415 (P) 6.00 (P) 1 (P) 6 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_usart.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
USART_DeInit 1288 (F) 1287 (F) (100%) 1 (P) (0%) 0 (F) (0%) 221 (F)
USART_Init 40 (P) 11 (P) (28%) 1 (P) (3%) 28 (P) (70%) 1 (P)
USART_StructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
USART_ClockInit 19 (P) 10 (P) (53%) 1 (P) (5%) 8 (P) (42%) 1 (P)
USART_ClockStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
USART_Cmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_ITConfig 26 (P) 19 (P) (73%) 1 (P) (4%) 6 (P) (23%) 1 (P)
USART_DMACmd 20 (P) 15 (P) (75%) 1 (P) (5%) 4 (P) (20%) 1 (P)
USART_SetAddress 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
USART_WakeUpConfig 12 (P) 11 (P) (92%) 1 (P) (8%) 0 (F) (0%) 1 (P)
           
USART_ReceiverWakeUpCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_LINBreakDetectLengthConfig 12 (P) 11 (P) (92%) 1 (P) (8%) 0 (F) (0%) 1 (P)
USART_LINCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_SendData 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 1 (P)
USART_ReceiveData 9 (F) 7 (P) (78%) 1 (P) (11%) 1 (P) (11%) 1 (P)
USART_SendBreak 9 (F) 7 (P) (78%) 1 (P) (11%) 1 (P) (11%) 1 (P)
USART_SetGuardTime 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
USART_SetPrescaler 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_SmartCardCmd 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
USART_SmartCardNACKCmd 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
           
USART_HalfDuplexCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_OverSampling8Cmd 15 (P) 12 (P) (80%) 1 (P) (7%) 2 (P) (13%) 1 (P)
USART_OneBitMethodCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_IrDAConfig 12 (P) 11 (P) (92%) 1 (P) (8%) 0 (F) (0%) 1 (P)
USART_IrDACmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
USART_GetFlagStatus 21 (P) 19 (P) (90%) 1 (P) (5%) 1 (P) (5%) 1 (P)
USART_ClearFlag 28 (P) 26 (P) (93%) 1 (P) (4%) 1 (P) (4%) 1 (P)
USART_GetITStatus 26 (P) 19 (P) (73%) 1 (P) (4%) 6 (P) (23%) 1 (P)
USART_ClearITPendingBit 29 (P) 27 (P) (93%) 1 (P) (3%) 1 (P) (3%) 2 (P)
           
Total for stm32f10x_usart.c 2412 (P) 2270 (P) (94%) 33 (P) (1%) 109 (P) (5%) 295 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_usart.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
USART_DeInit 129 (P) 998 (F) 998 (P) 1 (P) 0 (F)
USART_Init 246 (F) 16 (P) 4 (P) 0 (F) 11 (P)
USART_StructInit 14 (P) 50 (P) 43 (P) 7 (P) 0 (F)
USART_ClockInit 85 (P) 22 (P) 12 (P) 1 (P) 9 (P)
USART_ClockStructInit 10 (P) 70 (P) 60 (P) 10 (P) 0 (F)
USART_Cmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_ITConfig 168 (P) 15 (P) 11 (P) 1 (P) 4 (F)
USART_DMACmd 75 (P) 27 (P) 20 (P) 1 (P) 5 (P)
USART_SetAddress 47 (P) 23 (P) 17 (P) 2 (P) 4 (F)
USART_WakeUpConfig 57 (P) 21 (P) 19 (P) 2 (P) 0 (F)
           
USART_ReceiverWakeUpCmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_LINBreakDetectLengthConfig 57 (P) 21 (P) 19 (P) 2 (P) 0 (F)
USART_LINCmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_SendData 45 (P) 22 (P) 18 (P) 2 (P) 2 (F)
USART_ReceiveData 42 (P) 21 (P) 17 (P) 2 (P) 2 (F)
USART_SendBreak 43 (P) 21 (P) 16 (P) 2 (P) 2 (F)
USART_SetGuardTime 31 (P) 32 (P) 23 (P) 3 (P) 6 (P)
USART_SetPrescaler 44 (P) 27 (P) 20 (P) 2 (P) 5 (P)
USART_SmartCardCmd 51 (P) 22 (P) 16 (P) 2 (P) 4 (F)
USART_SmartCardNACKCmd 51 (P) 22 (P) 16 (P) 2 (P) 4 (F)
           
USART_HalfDuplexCmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_OverSampling8Cmd 65 (P) 23 (P) 18 (P) 2 (P) 3 (F)
USART_OneBitMethodCmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_IrDAConfig 57 (P) 21 (P) 19 (P) 2 (P) 0 (F)
USART_IrDACmd 65 (P) 18 (P) 14 (P) 2 (P) 3 (F)
USART_GetFlagStatus 139 (P) 15 (P) 14 (P) 1 (P) 1 (F)
USART_ClearFlag 87 (P) 32 (P) 30 (P) 1 (P) 1 (F)
USART_GetITStatus 174 (P) 15 (P) 11 (P) 1 (P) 3 (F)
USART_ClearITPendingBit 100 (P) 29 (P) 27 (P) 1 (P) 1 (F)
           
Total for stm32f10x_usart.c 2490 (P) 97 (P) 91 1 (P) 4 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_usart.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
USART_DeInit 4 (P) 10 (P) 0 (P) 1 (P) Yes (P)
USART_Init 3 (P) 22 (F) 0 (P) 1 (P) Yes (P)
USART_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USART_ClockInit 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_ClockStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
USART_Cmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_ITConfig 3 (P) 19 (F) 0 (P) 1 (P) Yes (P)
USART_DMACmd 1 (P) 8 (P) 0 (P) 1 (P) Yes (P)
USART_SetAddress 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_WakeUpConfig 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
           
USART_ReceiverWakeUpCmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_LINBreakDetectLengthConfig 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
USART_LINCmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_SendData 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_ReceiveData 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_SendBreak 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_SetGuardTime 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
USART_SetPrescaler 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_SmartCardCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
USART_SmartCardNACKCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
           
USART_HalfDuplexCmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_OverSampling8Cmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_OneBitMethodCmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_IrDAConfig 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
USART_IrDACmd 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
USART_GetFlagStatus 1 (P) 18 (F) 0 (P) 1 (P) Yes (P)
USART_ClearFlag 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
USART_GetITStatus 3 (P) 21 (F) 0 (P) 1 (P) Yes (P)
USART_ClearITPendingBit 0 (P) 11 (F) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_usart.c 40 (P) 220 (P) 0 (P) 1 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_usart.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_usart.c 2095 (F) 27957 (F) 26 (P) 726 (F) 752 (F) 30052 (F) 287134 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_usart.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
USART_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ClockInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ClockStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SetAddress 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_WakeUpConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
USART_ReceiverWakeUpCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_LINBreakDetectLengthConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_LINCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SendData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ReceiveData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SendBreak 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SetGuardTime 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SmartCardCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_SmartCardNACKCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
USART_HalfDuplexCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_OverSampling8Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_OneBitMethodCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_IrDAConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_IrDACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
USART_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_usart.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_usart.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_usart.c 620 (P) 618 (P) 2 (P) 56 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_usart.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
USART_DeInit 0 (P) 0 (P) 3 (P)
USART_Init 0 (P) 0 (P) 2 (P)
USART_StructInit 0 (P) 0 (P) 0 (P)
USART_ClockInit 0 (P) 0 (P) 1 (P)
USART_ClockStructInit 0 (P) 0 (P) 0 (P)
USART_Cmd 0 (P) 0 (P) 1 (P)
USART_ITConfig 0 (P) 0 (P) 1 (P)
USART_DMACmd 0 (P) 0 (P) 1 (P)
USART_SetAddress 0 (P) 0 (P) 1 (P)
USART_WakeUpConfig 0 (P) 0 (P) 1 (P)
       
USART_ReceiverWakeUpCmd 0 (P) 0 (P) 1 (P)
USART_LINBreakDetectLengthConfig 0 (P) 0 (P) 1 (P)
USART_LINCmd 0 (P) 0 (P) 1 (P)
USART_SendData 0 (P) 0 (P) 1 (P)
USART_ReceiveData 0 (P) 0 (P) 1 (P)
USART_SendBreak 0 (P) 0 (P) 1 (P)
USART_SetGuardTime 0 (P) 0 (P) 1 (P)
USART_SetPrescaler 0 (P) 0 (P) 1 (P)
USART_SmartCardCmd 0 (P) 0 (P) 1 (P)
USART_SmartCardNACKCmd 0 (P) 0 (P) 1 (P)
       
USART_HalfDuplexCmd 0 (P) 0 (P) 1 (P)
USART_OverSampling8Cmd 0 (P) 0 (P) 1 (P)
USART_OneBitMethodCmd 0 (P) 0 (P) 1 (P)
USART_IrDAConfig 0 (P) 0 (P) 1 (P)
USART_IrDACmd 0 (P) 0 (P) 1 (P)
USART_GetFlagStatus 0 (P) 0 (P) 1 (P)
USART_ClearFlag 0 (P) 0 (P) 1 (P)
USART_GetITStatus 0 (P) 0 (P) 1 (P)
USART_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_usart.c 2 (P) 1 (P) 32 (P)
       

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_tim.c


Reformatted Code Information for File (stm32f10x_tim.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_tim.c 22121 (F) 3579 (F) (16%) 11054 (F) (50%) 7488 (F) (34%) 108 (F) 15031 (F) 1.47 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_tim.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM_DeInit 443 (F) 68 (F) 6.51 (F) 1 (P) 1 (P)
TIM_TimeBaseInit 302 (F) 45 (F) 6.71 (F) 1 (P) 1 (P)
TIM_OC1Init 309 (F) 41 (F) 7.54 (F) 1 (P) 1 (P)
TIM_OC2Init 240 (F) 32 (F) 7.50 (F) 1 (P) 1 (P)
TIM_OC3Init 217 (F) 29 (P) 7.48 (F) 1 (P) 1 (P)
TIM_OC4Init 166 (P) 23 (P) 7.22 (F) 1 (P) 1 (P)
TIM_ICInit 484 (F) 71 (F) 6.82 (F) 1 (P) 1 (P)
TIM_PWMIConfig 134 (P) 19 (P) 7.05 (F) 1 (P) 1 (P)
TIM_BDTRConfig 135 (P) 20 (P) 6.75 (F) 1 (P) 1 (P)
TIM_TimeBaseStructInit 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
           
TIM_OCStructInit 17 (P) 1 (P) 17.00 (F) 1 (P) 1 (P)
TIM_ICStructInit 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
TIM_BDTRStructInit 15 (P) 1 (P) 15.00 (F) 1 (P) 1 (P)
TIM_Cmd 157 (P) 23 (P) 6.83 (F) 1 (P) 1 (P)
TIM_CtrlPWMOutputs 70 (P) 11 (P) 6.36 (F) 1 (P) 1 (P)
TIM_ITConfig 166 (P) 25 (P) 6.64 (F) 1 (P) 1 (P)
TIM_GenerateEvent 145 (P) 20 (P) 7.25 (F) 1 (P) 1 (P)
TIM_DMAConfig 265 (F) 47 (F) 5.64 (P) 1 (P) 1 (P)
TIM_DMACmd 121 (P) 19 (P) 6.37 (F) 1 (P) 1 (P)
TIM_InternalClockConfig 75 (P) 10 (P) 7.50 (F) 1 (P) 1 (P)
           
TIM_ITRxExternalClockConfig 100 (P) 14 (P) 7.14 (F) 1 (P) 1 (P)
TIM_TIxExternalClockConfig 129 (P) 18 (P) 7.17 (F) 1 (P) 1 (P)
TIM_ETRClockMode1Config 103 (P) 13 (P) 7.92 (F) 1 (P) 1 (P)
TIM_ETRClockMode2Config 93 (P) 13 (P) 7.15 (F) 1 (P) 1 (P)
TIM_ETRConfig 93 (P) 13 (P) 7.15 (F) 1 (P) 1 (P)
TIM_PrescalerConfig 147 (P) 20 (P) 7.35 (F) 1 (P) 1 (P)
TIM_CounterModeConfig 85 (P) 12 (P) 7.08 (F) 1 (P) 1 (P)
TIM_SelectInputTrigger 121 (P) 18 (P) 6.72 (F) 1 (P) 1 (P)
TIM_EncoderInterfaceConfig 130 (P) 15 (P) 8.67 (F) 1 (P) 1 (P)
TIM_ForcedOC1Config 137 (P) 18 (P) 7.61 (F) 1 (P) 1 (P)
           
TIM_ForcedOC2Config 91 (P) 12 (P) 7.58 (F) 1 (P) 1 (P)
TIM_ForcedOC3Config 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_ForcedOC4Config 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_ARRPreloadConfig 157 (P) 23 (P) 6.83 (F) 1 (P) 1 (P)
TIM_SelectCOM 70 (P) 11 (P) 6.36 (F) 1 (P) 1 (P)
TIM_SelectCCDMA 98 (P) 15 (P) 6.53 (F) 1 (P) 1 (P)
TIM_CCPreloadControl 82 (P) 13 (P) 6.31 (F) 1 (P) 1 (P)
TIM_OC1PreloadConfig 137 (P) 18 (P) 7.61 (F) 1 (P) 1 (P)
TIM_OC2PreloadConfig 91 (P) 12 (P) 7.58 (F) 1 (P) 1 (P)
TIM_OC3PreloadConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
           
TIM_OC4PreloadConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_OC1FastConfig 137 (P) 18 (P) 7.61 (F) 1 (P) 1 (P)
TIM_OC2FastConfig 91 (P) 12 (P) 7.58 (F) 1 (P) 1 (P)
TIM_OC3FastConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_OC4FastConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)

Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM_ClearOC1Ref 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_ClearOC2Ref 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_ClearOC3Ref 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_ClearOC4Ref 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_OC1PolarityConfig 137 (P) 18 (P) 7.61 (F) 1 (P) 1 (P)
           
TIM_OC1NPolarityConfig 64 (P) 8 (P) 8.00 (F) 1 (P) 1 (P)
TIM_OC2PolarityConfig 91 (P) 12 (P) 7.58 (F) 1 (P) 1 (P)
TIM_OC2NPolarityConfig 40 (P) 5 (P) 8.00 (F) 1 (P) 1 (P)
TIM_OC3PolarityConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_OC3NPolarityConfig 40 (P) 5 (P) 8.00 (F) 1 (P) 1 (P)
TIM_OC4PolarityConfig 68 (P) 9 (P) 7.56 (F) 1 (P) 1 (P)
TIM_CCxCmd 158 (P) 22 (P) 7.18 (F) 1 (P) 1 (P)
TIM_CCxNCmd 80 (P) 11 (P) 7.27 (F) 1 (P) 1 (P)
TIM_SelectOCxM 216 (F) 33 (F) 6.55 (F) 1 (P) 1 (P)
TIM_UpdateDisableConfig 157 (P) 23 (P) 6.83 (F) 1 (P) 1 (P)
           
TIM_UpdateRequestConfig 160 (P) 23 (P) 6.96 (F) 1 (P) 1 (P)
TIM_SelectHallSensor 97 (P) 15 (P) 6.47 (F) 1 (P) 1 (P)
TIM_SelectOnePulseMode 149 (P) 20 (P) 7.45 (F) 1 (P) 1 (P)
TIM_SelectOutputTrigger 133 (P) 20 (P) 6.65 (F) 1 (P) 1 (P)
TIM_SelectSlaveMode 99 (P) 14 (P) 7.07 (F) 1 (P) 1 (P)
TIM_SelectMasterSlaveMode 89 (P) 12 (P) 7.42 (F) 1 (P) 1 (P)
TIM_SetCounter 133 (P) 18 (P) 7.39 (F) 1 (P) 1 (P)
TIM_SetAutoreload 133 (P) 18 (P) 7.39 (F) 1 (P) 1 (P)
TIM_SetCompare1 119 (P) 16 (P) 7.44 (F) 1 (P) 1 (P)
TIM_SetCompare2 73 (P) 10 (P) 7.30 (F) 1 (P) 1 (P)
           
TIM_SetCompare3 50 (P) 7 (P) 7.14 (F) 1 (P) 1 (P)
TIM_SetCompare4 50 (P) 7 (P) 7.14 (F) 1 (P) 1 (P)
TIM_SetIC1Prescaler 145 (P) 20 (P) 7.25 (F) 1 (P) 1 (P)
TIM_SetIC2Prescaler 99 (P) 14 (P) 7.07 (F) 1 (P) 1 (P)
TIM_SetIC3Prescaler 76 (P) 11 (P) 6.91 (F) 1 (P) 1 (P)
TIM_SetIC4Prescaler 76 (P) 11 (P) 6.91 (F) 1 (P) 1 (P)
TIM_SetClockDivision 140 (P) 19 (P) 7.37 (F) 1 (P) 1 (P)
TIM_GetCapture1 119 (P) 16 (P) 7.44 (F) 1 (P) 1 (P)
TIM_GetCapture2 73 (P) 10 (P) 7.30 (F) 1 (P) 1 (P)
TIM_GetCapture3 50 (P) 7 (P) 7.14 (F) 1 (P) 1 (P)
           
TIM_GetCapture4 50 (P) 7 (P) 7.14 (F) 1 (P) 1 (P)
TIM_GetCounter 133 (P) 18 (P) 7.39 (F) 1 (P) 1 (P)
TIM_GetPrescaler 133 (P) 18 (P) 7.39 (F) 1 (P) 1 (P)
TIM_GetFlagStatus 208 (F) 33 (F) 6.30 (F) 1 (P) 1 (P)
TIM_ClearFlag 145 (P) 20 (P) 7.25 (F) 1 (P) 1 (P)
TIM_GetITStatus 195 (P) 31 (F) 6.29 (F) 1 (P) 1 (P)
TIM_ClearITPendingBit 145 (P) 20 (P) 7.25 (F) 1 (P) 1 (P)
TI1_Config 81 (P) 10 (P) 8.10 (F) 1 (P) 1 (P)
TI2_Config 83 (P) 10 (P) 8.30 (F) 1 (P) 1 (P)
TI3_Config 82 (P) 10 (P) 8.20 (F) 1 (P) 1 (P)

Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
           
TI4_Config 81 (P) 10 (P) 8.10 (F) 1 (P) 1 (P)
           
Total for stm32f10x_tim.c 11054 (P) 1579 (P) 7.00 (F) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_tim.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM_DeInit 1534 (F) 1533 (F) (100%) 1 (P) (0%) 0 (F) (0%) 289 (F)
TIM_TimeBaseInit 17 (P) 9 (P) (53%) 1 (P) (6%) 7 (P) (41%) 1 (P)
TIM_OC1Init 29 (P) 8 (P) (28%) 1 (P) (3%) 20 (P) (69%) 1 (P)
TIM_OC2Init 30 (P) 9 (P) (30%) 1 (P) (3%) 20 (P) (67%) 1 (P)
TIM_OC3Init 29 (P) 8 (P) (28%) 1 (P) (3%) 20 (P) (69%) 1 (P)
TIM_OC4Init 24 (P) 8 (P) (33%) 1 (P) (4%) 15 (P) (63%) 1 (P)
TIM_ICInit 17 (P) 8 (P) (47%) 1 (P) (6%) 8 (P) (47%) 1 (P)
TIM_PWMIConfig 19 (P) 8 (P) (42%) 1 (P) (5%) 10 (P) (53%) 1 (P)
TIM_BDTRConfig 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
TIM_TimeBaseStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
           
TIM_OCStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
TIM_ICStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
TIM_BDTRStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
TIM_Cmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
TIM_CtrlPWMOutputs 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
TIM_ITConfig 27 (P) 24 (P) (89%) 1 (P) (4%) 2 (P) (7%) 1 (P)
TIM_GenerateEvent 20 (P) 18 (P) (90%) 1 (P) (5%) 1 (P) (5%) 1 (P)
TIM_DMAConfig 20 (P) 18 (P) (90%) 1 (P) (5%) 1 (P) (5%) 1 (P)
TIM_DMACmd 20 (P) 17 (P) (85%) 1 (P) (5%) 2 (P) (10%) 1 (P)
TIM_InternalClockConfig 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
           
TIM_ITRxExternalClockConfig 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_TIxExternalClockConfig 20 (P) 16 (P) (80%) 1 (P) (5%) 3 (P) (15%) 1 (P)
TIM_ETRClockMode1Config 24 (P) 17 (P) (71%) 1 (P) (4%) 6 (P) (25%) 1 (P)
TIM_ETRClockMode2Config 20 (P) 17 (P) (85%) 1 (P) (5%) 2 (P) (10%) 1 (P)
TIM_ETRConfig 21 (P) 17 (P) (81%) 1 (P) (5%) 3 (P) (14%) 1 (P)
TIM_PrescalerConfig 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 1 (P)
TIM_CounterModeConfig 16 (P) 12 (P) (75%) 1 (P) (6%) 3 (P) (19%) 1 (P)
TIM_SelectInputTrigger 20 (P) 15 (P) (75%) 1 (P) (5%) 4 (P) (20%) 1 (P)
TIM_EncoderInterfaceConfig 29 (P) 19 (P) (66%) 1 (P) (3%) 9 (P) (31%) 1 (P)
TIM_ForcedOC1Config 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
           
TIM_ForcedOC2Config 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ForcedOC3Config 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ForcedOC4Config 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ARRPreloadConfig 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
TIM_SelectCOM 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
TIM_SelectCCDMA 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
TIM_CCPreloadControl 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
TIM_OC1PreloadConfig 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_OC2PreloadConfig 14 (P) 10 (P) (71%) 1 (P) (7%) 3 (P) (21%) 1 (P)
TIM_OC3PreloadConfig 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
           
TIM_OC4PreloadConfig 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_OC1FastConfig 14 (P) 9 (P) (64%) 1 (P) (7%) 4 (P) (29%) 1 (P)
TIM_OC2FastConfig 15 (P) 10 (P) (67%) 1 (P) (7%) 4 (P) (27%) 1 (P)
TIM_OC3FastConfig 14 (P) 9 (P) (64%) 1 (P) (7%) 4 (P) (29%) 1 (P)
TIM_OC4FastConfig 14 (P) 9 (P) (64%) 1 (P) (7%) 4 (P) (29%) 1 (P)

Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM_ClearOC1Ref 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ClearOC2Ref 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ClearOC3Ref 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_ClearOC4Ref 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
TIM_OC1PolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
           
TIM_OC1NPolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_OC2PolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_OC2NPolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_OC3PolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_OC3NPolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_OC4PolarityConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_CCxCmd 16 (P) 13 (P) (81%) 1 (P) (6%) 2 (P) (13%) 1 (P)
TIM_CCxNCmd 15 (P) 12 (P) (80%) 1 (P) (7%) 2 (P) (13%) 1 (P)
TIM_SelectOCxM 29 (P) 23 (P) (79%) 1 (P) (3%) 5 (P) (17%) 1 (P)
TIM_UpdateDisableConfig 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
           
TIM_UpdateRequestConfig 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_SelectHallSensor 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
TIM_SelectOnePulseMode 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
TIM_SelectOutputTrigger 24 (P) 21 (P) (88%) 1 (P) (4%) 2 (P) (8%) 1 (P)
TIM_SelectSlaveMode 15 (P) 12 (P) (80%) 1 (P) (7%) 2 (P) (13%) 1 (P)
TIM_SelectMasterSlaveMode 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 1 (P)
TIM_SetCounter 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
TIM_SetAutoreload 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
TIM_SetCompare1 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
TIM_SetCompare2 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
           
TIM_SetCompare3 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
TIM_SetCompare4 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
TIM_SetIC1Prescaler 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_SetIC2Prescaler 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_SetIC3Prescaler 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_SetIC4Prescaler 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_SetClockDivision 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
TIM_GetCapture1 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
TIM_GetCapture2 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
TIM_GetCapture3 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
           
TIM_GetCapture4 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
TIM_GetCounter 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
TIM_GetPrescaler 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
TIM_GetFlagStatus 27 (P) 26 (P) (96%) 1 (P) (4%) 0 (F) (0%) 1 (P)
TIM_ClearFlag 28 (P) 26 (P) (93%) 1 (P) (4%) 1 (P) (4%) 1 (P)
TIM_GetITStatus 23 (P) 22 (P) (96%) 1 (P) (4%) 0 (F) (0%) 1 (P)
TIM_ClearITPendingBit 24 (P) 22 (P) (92%) 1 (P) (4%) 1 (P) (4%) 1 (P)
TI1_Config 21 (P) 16 (P) (76%) 1 (P) (5%) 4 (P) (19%) 1 (P)
TI2_Config 21 (P) 16 (P) (76%) 1 (P) (5%) 4 (P) (19%) 1 (P)
TI3_Config 21 (P) 16 (P) (76%) 1 (P) (5%) 4 (P) (19%) 1 (P)

Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
           
TI4_Config 21 (P) 16 (P) (76%) 1 (P) (5%) 4 (P) (19%) 2 (P)
           
Total for stm32f10x_tim.c 3569 (P) 3163 (P) (89%) 95 (P) (3%) 311 (P) (9%) 425 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_tim.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM_DeInit 443 (F) 346 (F) 346 (P) 0 (F) 0 (F)
TIM_TimeBaseInit 302 (F) 6 (F) 3 (P) 0 (F) 2 (F)
TIM_OC1Init 309 (F) 9 (F) 3 (P) 0 (F) 6 (P)
TIM_OC2Init 240 (F) 13 (P) 4 (P) 0 (F) 8 (P)
TIM_OC3Init 217 (F) 13 (P) 4 (P) 0 (F) 9 (P)
TIM_OC4Init 166 (P) 14 (P) 5 (P) 1 (P) 9 (P)
TIM_ICInit 484 (F) 4 (F) 2 (P) 0 (F) 2 (F)
TIM_PWMIConfig 134 (P) 14 (P) 6 (P) 1 (P) 7 (P)
TIM_BDTRConfig 135 (P) 8 (F) 6 (P) 1 (P) 1 (F)
TIM_TimeBaseStructInit 9 (P) 78 (P) 67 (P) 11 (P) 0 (F)
           
TIM_OCStructInit 17 (P) 41 (P) 35 (P) 6 (P) 0 (F)
TIM_ICStructInit 11 (P) 64 (P) 55 (P) 9 (P) 0 (F)
TIM_BDTRStructInit 15 (P) 47 (P) 40 (P) 7 (P) 0 (F)
TIM_Cmd 157 (P) 6 (F) 4 (P) 1 (P) 1 (F)
TIM_CtrlPWMOutputs 70 (P) 14 (P) 10 (P) 1 (P) 3 (F)
TIM_ITConfig 166 (P) 16 (P) 14 (P) 1 (P) 1 (F)
TIM_GenerateEvent 145 (P) 14 (P) 12 (P) 1 (P) 1 (F)
TIM_DMAConfig 265 (F) 8 (F) 7 (P) 0 (F) 0 (F)
TIM_DMACmd 121 (P) 17 (P) 14 (P) 1 (P) 2 (F)
TIM_InternalClockConfig 75 (P) 11 (P) 8 (P) 1 (P) 1 (F)
           
TIM_ITRxExternalClockConfig 100 (P) 14 (P) 11 (P) 1 (P) 2 (F)
TIM_TIxExternalClockConfig 129 (P) 16 (P) 12 (P) 1 (P) 2 (F)
TIM_ETRClockMode1Config 103 (P) 23 (P) 17 (P) 1 (P) 6 (P)
TIM_ETRClockMode2Config 93 (P) 22 (P) 18 (P) 1 (P) 2 (F)
TIM_ETRConfig 93 (P) 23 (P) 18 (P) 1 (P) 3 (F)
TIM_PrescalerConfig 147 (P) 9 (F) 7 (P) 1 (P) 1 (F)
TIM_CounterModeConfig 85 (P) 19 (P) 14 (P) 1 (P) 4 (F)
TIM_SelectInputTrigger 121 (P) 17 (P) 12 (P) 1 (P) 3 (F)
TIM_EncoderInterfaceConfig 130 (P) 22 (P) 15 (P) 1 (P) 7 (P)
TIM_ForcedOC1Config 137 (P) 9 (F) 7 (P) 1 (P) 2 (F)
           
TIM_ForcedOC2Config 91 (P) 14 (P) 10 (P) 1 (P) 3 (F)
TIM_ForcedOC3Config 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_ForcedOC4Config 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_ARRPreloadConfig 157 (P) 6 (F) 4 (P) 1 (P) 1 (F)
TIM_SelectCOM 70 (P) 14 (P) 10 (P) 1 (P) 3 (F)
TIM_SelectCCDMA 98 (P) 11 (P) 8 (P) 1 (P) 2 (F)
TIM_CCPreloadControl 82 (P) 13 (P) 10 (P) 1 (P) 2 (F)
TIM_OC1PreloadConfig 137 (P) 9 (F) 7 (P) 1 (P) 2 (F)
TIM_OC2PreloadConfig 91 (P) 15 (P) 11 (P) 1 (P) 3 (F)
TIM_OC3PreloadConfig 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
           
TIM_OC4PreloadConfig 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_OC1FastConfig 137 (P) 10 (P) 7 (P) 1 (P) 3 (F)
TIM_OC2FastConfig 91 (P) 16 (P) 11 (P) 1 (P) 4 (F)
TIM_OC3FastConfig 68 (P) 21 (P) 13 (P) 1 (P) 6 (P)
TIM_OC4FastConfig 68 (P) 21 (P) 13 (P) 1 (P) 6 (P)

Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM_ClearOC1Ref 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_ClearOC2Ref 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_ClearOC3Ref 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_ClearOC4Ref 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
TIM_OC1PolarityConfig 137 (P) 9 (F) 7 (P) 1 (P) 1 (F)
           
TIM_OC1NPolarityConfig 64 (P) 19 (P) 14 (P) 2 (P) 3 (F)
TIM_OC2PolarityConfig 91 (P) 13 (P) 10 (P) 1 (P) 2 (F)
TIM_OC2NPolarityConfig 40 (P) 30 (P) 23 (P) 3 (P) 5 (P)
TIM_OC3PolarityConfig 68 (P) 18 (P) 13 (P) 1 (P) 3 (F)
TIM_OC3NPolarityConfig 40 (P) 30 (P) 23 (P) 3 (P) 5 (P)
TIM_OC4PolarityConfig 68 (P) 18 (P) 13 (P) 1 (P) 3 (F)
TIM_CCxCmd 158 (P) 10 (P) 8 (P) 1 (P) 1 (F)
TIM_CCxNCmd 80 (P) 19 (P) 15 (P) 1 (P) 3 (F)
TIM_SelectOCxM 216 (F) 13 (P) 11 (P) 0 (F) 2 (F)
TIM_UpdateDisableConfig 157 (P) 6 (F) 4 (P) 1 (P) 1 (F)
           
TIM_UpdateRequestConfig 160 (P) 9 (F) 7 (P) 1 (P) 1 (F)
TIM_SelectHallSensor 97 (P) 10 (P) 7 (P) 1 (P) 2 (F)
TIM_SelectOnePulseMode 149 (P) 8 (F) 6 (P) 1 (P) 1 (F)
TIM_SelectOutputTrigger 133 (P) 18 (P) 16 (P) 1 (P) 2 (F)
TIM_SelectSlaveMode 99 (P) 15 (P) 12 (P) 1 (P) 2 (F)
TIM_SelectMasterSlaveMode 89 (P) 15 (P) 11 (P) 1 (P) 2 (F)
TIM_SetCounter 133 (P) 6 (F) 5 (P) 1 (P) 1 (F)
TIM_SetAutoreload 133 (P) 6 (F) 5 (P) 1 (P) 1 (F)
TIM_SetCompare1 119 (P) 7 (F) 5 (P) 1 (P) 1 (F)
TIM_SetCompare2 73 (P) 11 (P) 8 (P) 1 (P) 1 (F)
           
TIM_SetCompare3 50 (P) 16 (P) 12 (P) 2 (P) 2 (F)
TIM_SetCompare4 50 (P) 16 (P) 12 (P) 2 (P) 2 (F)
TIM_SetIC1Prescaler 145 (P) 10 (P) 8 (P) 1 (P) 1 (F)
TIM_SetIC2Prescaler 99 (P) 14 (P) 11 (P) 1 (P) 2 (F)
TIM_SetIC3Prescaler 76 (P) 18 (P) 14 (P) 1 (P) 3 (F)
TIM_SetIC4Prescaler 76 (P) 18 (P) 14 (P) 1 (P) 3 (F)
TIM_SetClockDivision 140 (P) 10 (P) 8 (P) 1 (P) 1 (F)
TIM_GetCapture1 119 (P) 6 (F) 4 (P) 1 (P) 1 (F)
TIM_GetCapture2 73 (P) 10 (P) 7 (P) 1 (P) 1 (F)
TIM_GetCapture3 50 (P) 14 (P) 10 (P) 2 (P) 2 (F)
           
TIM_GetCapture4 50 (P) 14 (P) 10 (P) 2 (P) 2 (F)
TIM_GetCounter 133 (P) 5 (F) 4 (P) 1 (P) 1 (F)
TIM_GetPrescaler 133 (P) 5 (F) 4 (P) 1 (P) 1 (F)
TIM_GetFlagStatus 208 (F) 13 (P) 13 (P) 0 (F) 0 (F)
TIM_ClearFlag 145 (P) 19 (P) 18 (P) 1 (P) 1 (F)
TIM_GetITStatus 195 (P) 12 (P) 11 (P) 1 (P) 0 (F)
TIM_ClearITPendingBit 145 (P) 17 (P) 15 (P) 1 (P) 1 (F)
TI1_Config 81 (P) 26 (P) 20 (P) 1 (P) 5 (P)
TI2_Config 83 (P) 25 (P) 19 (P) 1 (P) 5 (P)
TI3_Config 82 (P) 26 (P) 20 (P) 1 (P) 5 (P)

Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
           
TI4_Config 81 (P) 26 (P) 20 (P) 1 (P) 5 (P)
           
Total for stm32f10x_tim.c 11054 (P) 32 (P) 29 1 (P) 3 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_tim.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM_DeInit 16 (F) 34 (F) 0 (P) 1 (P) Yes (P)
TIM_TimeBaseInit 0 (P) 36 (F) 0 (P) 1 (P) Yes (P)
TIM_OC1Init 0 (P) 31 (F) 0 (P) 1 (P) Yes (P)
TIM_OC2Init 0 (P) 22 (F) 0 (P) 1 (P) Yes (P)
TIM_OC3Init 0 (P) 19 (F) 0 (P) 1 (P) Yes (P)
TIM_OC4Init 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
TIM_ICInit 4 (P) 53 (F) 0 (P) 1 (P) Yes (P)
TIM_PWMIConfig 3 (P) 12 (F) 0 (P) 1 (P) Yes (P)
TIM_BDTRConfig 0 (P) 13 (F) 0 (P) 1 (P) Yes (P)
TIM_TimeBaseStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
TIM_OCStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM_ICStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM_BDTRStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM_Cmd 1 (P) 19 (F) 0 (P) 1 (P) Yes (P)
TIM_CtrlPWMOutputs 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ITConfig 1 (P) 20 (F) 0 (P) 1 (P) Yes (P)
TIM_GenerateEvent 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_DMAConfig 0 (P) 44 (F) 0 (P) 1 (P) Yes (P)
TIM_DMACmd 1 (P) 14 (F) 0 (P) 1 (P) Yes (P)
TIM_InternalClockConfig 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
           
TIM_ITRxExternalClockConfig 0 (P) 12 (F) 0 (P) 1 (P) Yes (P)
TIM_TIxExternalClockConfig 1 (P) 13 (F) 0 (P) 1 (P) Yes (P)
TIM_ETRClockMode1Config 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_ETRClockMode2Config 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_ETRConfig 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_PrescalerConfig 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_CounterModeConfig 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_SelectInputTrigger 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
TIM_EncoderInterfaceConfig 0 (P) 11 (F) 0 (P) 1 (P) Yes (P)
TIM_ForcedOC1Config 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
           
TIM_ForcedOC2Config 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_ForcedOC3Config 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ForcedOC4Config 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ARRPreloadConfig 1 (P) 19 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectCOM 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_SelectCCDMA 1 (P) 11 (F) 0 (P) 1 (P) Yes (P)
TIM_CCPreloadControl 1 (P) 9 (P) 0 (P) 1 (P) Yes (P)
TIM_OC1PreloadConfig 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
TIM_OC2PreloadConfig 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_OC3PreloadConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
           
TIM_OC4PreloadConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_OC1FastConfig 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
TIM_OC2FastConfig 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_OC3FastConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_OC4FastConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)

Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM_ClearOC1Ref 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ClearOC2Ref 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ClearOC3Ref 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_ClearOC4Ref 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_OC1PolarityConfig 0 (P) 16 (F) 0 (P) 1 (P) Yes (P)
           
TIM_OC1NPolarityConfig 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
TIM_OC2PolarityConfig 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_OC2NPolarityConfig 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
TIM_OC3PolarityConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_OC3NPolarityConfig 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
TIM_OC4PolarityConfig 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TIM_CCxCmd 0 (P) 19 (F) 0 (P) 1 (P) Yes (P)
TIM_CCxNCmd 0 (P) 8 (P) 0 (P) 1 (P) Yes (P)
TIM_SelectOCxM 1 (P) 27 (F) 0 (P) 1 (P) Yes (P)
TIM_UpdateDisableConfig 1 (P) 19 (F) 0 (P) 1 (P) Yes (P)
           
TIM_UpdateRequestConfig 1 (P) 19 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectHallSensor 1 (P) 11 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectOnePulseMode 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectOutputTrigger 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectSlaveMode 0 (P) 12 (F) 0 (P) 1 (P) Yes (P)
TIM_SelectMasterSlaveMode 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
TIM_SetCounter 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
TIM_SetAutoreload 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
TIM_SetCompare1 0 (P) 15 (F) 0 (P) 1 (P) Yes (P)
TIM_SetCompare2 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
           
TIM_SetCompare3 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
TIM_SetCompare4 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
TIM_SetIC1Prescaler 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_SetIC2Prescaler 0 (P) 12 (F) 0 (P) 1 (P) Yes (P)
TIM_SetIC3Prescaler 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
TIM_SetIC4Prescaler 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
TIM_SetClockDivision 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
TIM_GetCapture1 0 (P) 15 (F) 0 (P) 1 (P) Yes (P)
TIM_GetCapture2 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
TIM_GetCapture3 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
           
TIM_GetCapture4 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
TIM_GetCounter 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
TIM_GetPrescaler 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
TIM_GetFlagStatus 1 (P) 29 (F) 0 (P) 1 (P) Yes (P)
TIM_ClearFlag 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TIM_GetITStatus 1 (P) 26 (F) 0 (P) 1 (P) Yes (P)
TIM_ClearITPendingBit 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
TI1_Config 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TI2_Config 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
TI3_Config 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)

Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
           
TI4_Config 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_tim.c 58 (P) 1138 (F) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_tim.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_tim.c 7390 (F) 32280 (F) 26 (P) 1055 (F) 1081 (F) 39670 (F) 399800 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_tim.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_TimeBaseInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC1Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC2Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC3Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC4Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ICInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_PWMIConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_BDTRConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_TimeBaseStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_OCStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ICStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_BDTRStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_CtrlPWMOutputs 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GenerateEvent 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_DMAConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_InternalClockConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_ITRxExternalClockConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_TIxExternalClockConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ETRClockMode1Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ETRClockMode2Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ETRConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_PrescalerConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_CounterModeConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectInputTrigger 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_EncoderInterfaceConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ForcedOC1Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_ForcedOC2Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ForcedOC3Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ForcedOC4Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ARRPreloadConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectCOM 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectCCDMA 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_CCPreloadControl 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC1PreloadConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC2PreloadConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC3PreloadConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_OC4PreloadConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC1FastConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC2FastConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC3FastConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC4FastConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM_ClearOC1Ref 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ClearOC2Ref 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ClearOC3Ref 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ClearOC4Ref 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC1PolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_OC1NPolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC2PolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC2NPolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC3PolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC3NPolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_OC4PolarityConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_CCxCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_CCxNCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectOCxM 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_UpdateDisableConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_UpdateRequestConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectHallSensor 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectOnePulseMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectOutputTrigger 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectSlaveMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SelectMasterSlaveMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetAutoreload 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetCompare1 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetCompare2 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_SetCompare3 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetCompare4 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetIC1Prescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetIC2Prescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetIC3Prescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetIC4Prescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_SetClockDivision 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetCapture1 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetCapture2 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetCapture3 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
TIM_GetCapture4 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TI1_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TI2_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TI3_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
           
TI4_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_tim.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_tim.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_tim.c 2217 (F) 2215 (F) 2 (P) 72 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_tim.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM_DeInit 0 (P) 0 (P) 3 (P)
TIM_TimeBaseInit 0 (P) 0 (P) 1 (P)
TIM_OC1Init 0 (P) 0 (P) 1 (P)
TIM_OC2Init 0 (P) 0 (P) 1 (P)
TIM_OC3Init 0 (P) 0 (P) 1 (P)
TIM_OC4Init 0 (P) 0 (P) 1 (P)
TIM_ICInit 0 (P) 0 (P) 9 (F)
TIM_PWMIConfig 0 (P) 0 (P) 5 (P)
TIM_BDTRConfig 0 (P) 0 (P) 1 (P)
TIM_TimeBaseStructInit 0 (P) 0 (P) 0 (P)
       
TIM_OCStructInit 0 (P) 0 (P) 0 (P)
TIM_ICStructInit 0 (P) 0 (P) 0 (P)
TIM_BDTRStructInit 0 (P) 0 (P) 0 (P)
TIM_Cmd 0 (P) 0 (P) 1 (P)
TIM_CtrlPWMOutputs 0 (P) 0 (P) 1 (P)
TIM_ITConfig 0 (P) 0 (P) 1 (P)
TIM_GenerateEvent 0 (P) 0 (P) 1 (P)
TIM_DMAConfig 0 (P) 0 (P) 1 (P)
TIM_DMACmd 0 (P) 0 (P) 1 (P)
TIM_InternalClockConfig 0 (P) 0 (P) 1 (P)
       
TIM_ITRxExternalClockConfig 0 (P) 0 (P) 2 (P)
TIM_TIxExternalClockConfig 0 (P) 0 (P) 4 (P)
TIM_ETRClockMode1Config 0 (P) 0 (P) 2 (P)
TIM_ETRClockMode2Config 0 (P) 0 (P) 2 (P)
TIM_ETRConfig 0 (P) 2 (P) 1 (P)
TIM_PrescalerConfig 0 (P) 0 (P) 1 (P)
TIM_CounterModeConfig 0 (P) 0 (P) 1 (P)
TIM_SelectInputTrigger 0 (P) 2 (P) 1 (P)
TIM_EncoderInterfaceConfig 0 (P) 0 (P) 1 (P)
TIM_ForcedOC1Config 0 (P) 0 (P) 1 (P)
       
TIM_ForcedOC2Config 0 (P) 0 (P) 1 (P)
TIM_ForcedOC3Config 0 (P) 0 (P) 1 (P)
TIM_ForcedOC4Config 0 (P) 0 (P) 1 (P)
TIM_ARRPreloadConfig 0 (P) 0 (P) 1 (P)
TIM_SelectCOM 0 (P) 0 (P) 1 (P)
TIM_SelectCCDMA 0 (P) 0 (P) 1 (P)
TIM_CCPreloadControl 0 (P) 0 (P) 1 (P)
TIM_OC1PreloadConfig 0 (P) 0 (P) 1 (P)
TIM_OC2PreloadConfig 0 (P) 0 (P) 1 (P)
TIM_OC3PreloadConfig 0 (P) 0 (P) 1 (P)
       
TIM_OC4PreloadConfig 0 (P) 0 (P) 1 (P)
TIM_OC1FastConfig 0 (P) 0 (P) 1 (P)
TIM_OC2FastConfig 0 (P) 0 (P) 1 (P)
TIM_OC3FastConfig 0 (P) 0 (P) 1 (P)
TIM_OC4FastConfig 0 (P) 0 (P) 1 (P)

Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM_ClearOC1Ref 0 (P) 0 (P) 1 (P)
TIM_ClearOC2Ref 0 (P) 0 (P) 1 (P)
TIM_ClearOC3Ref 0 (P) 0 (P) 1 (P)
TIM_ClearOC4Ref 0 (P) 0 (P) 1 (P)
TIM_OC1PolarityConfig 0 (P) 0 (P) 1 (P)
       
TIM_OC1NPolarityConfig 0 (P) 0 (P) 1 (P)
TIM_OC2PolarityConfig 0 (P) 0 (P) 1 (P)
TIM_OC2NPolarityConfig 0 (P) 0 (P) 1 (P)
TIM_OC3PolarityConfig 0 (P) 0 (P) 1 (P)
TIM_OC3NPolarityConfig 0 (P) 0 (P) 1 (P)
TIM_OC4PolarityConfig 0 (P) 0 (P) 1 (P)
TIM_CCxCmd 0 (P) 0 (P) 1 (P)
TIM_CCxNCmd 0 (P) 0 (P) 1 (P)
TIM_SelectOCxM 0 (P) 0 (P) 1 (P)
TIM_UpdateDisableConfig 0 (P) 0 (P) 1 (P)
       
TIM_UpdateRequestConfig 0 (P) 0 (P) 1 (P)
TIM_SelectHallSensor 0 (P) 0 (P) 1 (P)
TIM_SelectOnePulseMode 0 (P) 0 (P) 1 (P)
TIM_SelectOutputTrigger 0 (P) 0 (P) 1 (P)
TIM_SelectSlaveMode 0 (P) 0 (P) 1 (P)
TIM_SelectMasterSlaveMode 0 (P) 0 (P) 1 (P)
TIM_SetCounter 0 (P) 0 (P) 1 (P)
TIM_SetAutoreload 0 (P) 0 (P) 1 (P)
TIM_SetCompare1 0 (P) 0 (P) 1 (P)
TIM_SetCompare2 0 (P) 0 (P) 1 (P)
       
TIM_SetCompare3 0 (P) 0 (P) 1 (P)
TIM_SetCompare4 0 (P) 0 (P) 1 (P)
TIM_SetIC1Prescaler 0 (P) 2 (P) 1 (P)
TIM_SetIC2Prescaler 0 (P) 2 (P) 1 (P)
TIM_SetIC3Prescaler 0 (P) 1 (P) 1 (P)
TIM_SetIC4Prescaler 0 (P) 1 (P) 1 (P)
TIM_SetClockDivision 0 (P) 0 (P) 1 (P)
TIM_GetCapture1 0 (P) 0 (P) 1 (P)
TIM_GetCapture2 0 (P) 0 (P) 1 (P)
TIM_GetCapture3 0 (P) 0 (P) 1 (P)
       
TIM_GetCapture4 0 (P) 0 (P) 1 (P)
TIM_GetCounter 0 (P) 0 (P) 1 (P)
TIM_GetPrescaler 0 (P) 0 (P) 1 (P)
TIM_GetFlagStatus 0 (P) 0 (P) 1 (P)
TIM_ClearFlag 0 (P) 0 (P) 1 (P)
TIM_GetITStatus 0 (P) 0 (P) 1 (P)
TIM_ClearITPendingBit 0 (P) 0 (P) 1 (P)
TI1_Config 0 (P) 3 (P) 0 (P)
TI2_Config 0 (P) 3 (P) 0 (P)
TI3_Config 0 (P) 1 (P) 0 (P)

Procedure Globals in File Fan
  Procedure Fan in Out
 
       
TI4_Config 0 (P) 1 (P) 0 (P)
       
Total for stm32f10x_tim.c 2 (P) 19 (P) 105 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_spi.c


Reformatted Code Information for File (stm32f10x_spi.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_spi.c 10561 (F) 2385 (F) (23%) 1688 (P) (16%) 6488 (F) (61%) 40 (P) 12372 (F) 0.85 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_spi.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
SPI_I2S_DeInit 79 (P) 12 (P) 6.58 (F) 1 (P) 1 (P)
SPI_Init 184 (P) 28 (P) 6.57 (F) 1 (P) 1 (P)
I2S_Init 235 (F) 40 (F) 5.87 (P) 1 (P) 1 (P)
SPI_StructInit 19 (P) 1 (P) 19.00 (F) 1 (P) 1 (P)
I2S_StructInit 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
SPI_Cmd 51 (P) 9 (P) 5.67 (P) 1 (P) 1 (P)
I2S_Cmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
SPI_I2S_ITConfig 69 (P) 12 (P) 5.75 (P) 1 (P) 1 (P)
SPI_I2S_DMACmd 61 (P) 11 (P) 5.55 (P) 1 (P) 1 (P)
SPI_I2S_SendData 28 (P) 4 (P) 7.00 (F) 1 (P) 1 (P)
           
SPI_I2S_ReceiveData 28 (P) 4 (P) 7.00 (F) 1 (P) 1 (P)
SPI_NSSInternalSoftwareConfig 54 (P) 9 (P) 6.00 (P) 1 (P) 1 (P)
SPI_SSOutputCmd 51 (P) 9 (P) 5.67 (P) 1 (P) 1 (P)
SPI_DataSizeConfig 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
SPI_TransmitCRC 29 (P) 4 (P) 7.25 (F) 1 (P) 1 (P)
SPI_CalculateCRC 51 (P) 9 (P) 5.67 (P) 1 (P) 1 (P)
SPI_GetCRC 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
SPI_GetCRCPolynomial 28 (P) 4 (P) 7.00 (F) 1 (P) 1 (P)
SPI_BiDirectionalLineConfig 54 (P) 9 (P) 6.00 (P) 1 (P) 1 (P)
SPI_I2S_GetFlagStatus 83 (P) 15 (P) 5.53 (P) 1 (P) 1 (P)
           
SPI_I2S_ClearFlag 33 (P) 4 (P) 8.25 (F) 1 (P) 1 (P)
SPI_I2S_GetITStatus 81 (P) 15 (P) 5.40 (P) 1 (P) 1 (P)
SPI_I2S_ClearITPendingBit 34 (P) 4 (P) 8.50 (F) 1 (P) 1 (P)
           
Total for stm32f10x_spi.c 1688 (P) 291 (P) 5.80 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_spi.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
SPI_I2S_DeInit 1340 (F) 1333 (F) (99%) 1 (P) (0%) 6 (P) (0%) 233 (F)
SPI_Init 25 (P) 8 (P) (32%) 1 (P) (4%) 16 (P) (64%) 1 (P)
I2S_Init 45 (P) 15 (P) (33%) 1 (P) (2%) 29 (P) (64%) 1 (P)
SPI_StructInit 15 (P) 5 (P) (33%) 2 (P) (13%) 8 (P) (53%) 1 (P)
I2S_StructInit 12 (P) 5 (P) (42%) 2 (P) (17%) 5 (P) (42%) 1 (P)
SPI_Cmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2S_Cmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
SPI_I2S_ITConfig 19 (P) 14 (P) (74%) 1 (P) (5%) 4 (P) (21%) 1 (P)
SPI_I2S_DMACmd 16 (P) 13 (P) (81%) 1 (P) (6%) 2 (P) (13%) 1 (P)
SPI_I2S_SendData 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 1 (P)
           
SPI_I2S_ReceiveData 9 (F) 7 (P) (78%) 1 (P) (11%) 1 (P) (11%) 1 (P)
SPI_NSSInternalSoftwareConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
SPI_SSOutputCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
SPI_DataSizeConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
SPI_TransmitCRC 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
SPI_CalculateCRC 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
SPI_GetCRC 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
SPI_GetCRCPolynomial 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
SPI_BiDirectionalLineConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
SPI_I2S_GetFlagStatus 22 (P) 17 (P) (77%) 1 (P) (5%) 4 (P) (18%) 1 (P)
           
SPI_I2S_ClearFlag 19 (P) 17 (P) (89%) 1 (P) (5%) 1 (P) (5%) 1 (P)
SPI_I2S_GetITStatus 24 (P) 15 (P) (63%) 1 (P) (4%) 8 (P) (33%) 1 (P)
SPI_I2S_ClearITPendingBit 21 (P) 18 (P) (86%) 1 (P) (5%) 2 (P) (10%) 2 (P)
           
Total for stm32f10x_spi.c 2375 (P) 2213 (F) (93%) 29 (P) (1%) 133 (P) (6%) 301 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_spi.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
SPI_I2S_DeInit 79 (P) 1696 (F) 1687 (F) 1 (P) 8 (P)
SPI_Init 184 (P) 14 (P) 4 (P) 1 (P) 9 (P)
I2S_Init 235 (F) 19 (P) 6 (P) 0 (F) 12 (P)
SPI_StructInit 19 (P) 79 (P) 26 (P) 11 (P) 42 (P)
I2S_StructInit 14 (P) 86 (P) 36 (P) 14 (P) 36 (P)
SPI_Cmd 51 (P) 20 (P) 14 (P) 2 (P) 4 (F)
I2S_Cmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
SPI_I2S_ITConfig 69 (P) 28 (P) 20 (P) 1 (P) 6 (P)
SPI_I2S_DMACmd 61 (P) 26 (P) 21 (P) 2 (P) 3 (F)
SPI_I2S_SendData 28 (P) 36 (P) 29 (P) 4 (P) 4 (F)
           
SPI_I2S_ReceiveData 28 (P) 32 (P) 25 (P) 4 (P) 4 (F)
SPI_NSSInternalSoftwareConfig 54 (P) 22 (P) 17 (P) 2 (P) 4 (F)
SPI_SSOutputCmd 51 (P) 20 (P) 14 (P) 2 (P) 4 (F)
SPI_DataSizeConfig 43 (P) 28 (P) 21 (P) 2 (P) 5 (P)
SPI_TransmitCRC 29 (P) 24 (P) 17 (P) 3 (P) 3 (F)
SPI_CalculateCRC 51 (P) 20 (P) 14 (P) 2 (P) 4 (F)
SPI_GetCRC 53 (P) 25 (P) 17 (P) 2 (P) 6 (P)
SPI_GetCRCPolynomial 28 (P) 25 (P) 18 (P) 4 (P) 4 (F)
SPI_BiDirectionalLineConfig 54 (P) 22 (P) 17 (P) 2 (P) 4 (F)
SPI_I2S_GetFlagStatus 83 (P) 27 (P) 20 (P) 1 (P) 5 (P)
           
SPI_I2S_ClearFlag 33 (P) 58 (P) 52 (P) 3 (P) 3 (F)
SPI_I2S_GetITStatus 81 (P) 30 (P) 19 (P) 1 (P) 10 (P)
SPI_I2S_ClearITPendingBit 34 (P) 62 (P) 53 (P) 3 (P) 6 (P)
           
Total for stm32f10x_spi.c 1688 (P) 141 (P) 131 2 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_spi.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
SPI_I2S_DeInit 2 (P) 6 (P) 0 (P) 1 (P) Yes (P)
SPI_Init 0 (P) 19 (F) 0 (P) 1 (P) Yes (P)
I2S_Init 4 (P) 22 (F) 0 (P) 1 (P) Yes (P)
SPI_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
I2S_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SPI_Cmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
I2S_Cmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_ITConfig 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_DMACmd 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_SendData 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
SPI_I2S_ReceiveData 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
SPI_NSSInternalSoftwareConfig 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SPI_SSOutputCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SPI_DataSizeConfig 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
SPI_TransmitCRC 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
SPI_CalculateCRC 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SPI_GetCRC 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SPI_GetCRCPolynomial 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
SPI_BiDirectionalLineConfig 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_GetFlagStatus 1 (P) 11 (F) 0 (P) 1 (P) Yes (P)
           
SPI_I2S_ClearFlag 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_GetITStatus 1 (P) 10 (P) 0 (P) 1 (P) Yes (P)
SPI_I2S_ClearITPendingBit 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_spi.c 33 (P) 133 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_spi.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_spi.c 1666 (F) 27792 (F) 26 (P) 686 (F) 712 (F) 29458 (F) 279136 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_spi.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
SPI_I2S_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2S_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2S_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2S_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_SendData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
SPI_I2S_ReceiveData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_NSSInternalSoftwareConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_SSOutputCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_DataSizeConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_TransmitCRC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_CalculateCRC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_GetCRC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_GetCRCPolynomial 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_BiDirectionalLineConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
SPI_I2S_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI_I2S_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_spi.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_spi.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_spi.c 483 (P) 481 (P) 2 (P) 72 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_spi.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
SPI_I2S_DeInit 0 (P) 0 (P) 3 (P)
SPI_Init 0 (P) 0 (P) 1 (P)
I2S_Init 0 (P) 0 (P) 2 (P)
SPI_StructInit 0 (P) 0 (P) 0 (P)
I2S_StructInit 0 (P) 0 (P) 0 (P)
SPI_Cmd 0 (P) 0 (P) 1 (P)
I2S_Cmd 0 (P) 0 (P) 1 (P)
SPI_I2S_ITConfig 0 (P) 0 (P) 1 (P)
SPI_I2S_DMACmd 0 (P) 0 (P) 1 (P)
SPI_I2S_SendData 0 (P) 0 (P) 1 (P)
       
SPI_I2S_ReceiveData 0 (P) 0 (P) 1 (P)
SPI_NSSInternalSoftwareConfig 0 (P) 0 (P) 1 (P)
SPI_SSOutputCmd 0 (P) 0 (P) 1 (P)
SPI_DataSizeConfig 0 (P) 0 (P) 1 (P)
SPI_TransmitCRC 0 (P) 0 (P) 1 (P)
SPI_CalculateCRC 0 (P) 0 (P) 1 (P)
SPI_GetCRC 0 (P) 0 (P) 1 (P)
SPI_GetCRCPolynomial 0 (P) 0 (P) 1 (P)
SPI_BiDirectionalLineConfig 0 (P) 0 (P) 1 (P)
SPI_I2S_GetFlagStatus 0 (P) 0 (P) 1 (P)
       
SPI_I2S_ClearFlag 0 (P) 0 (P) 1 (P)
SPI_I2S_GetITStatus 0 (P) 0 (P) 1 (P)
SPI_I2S_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_spi.c 2 (P) 1 (P) 26 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_sdio.c


Reformatted Code Information for File (stm32f10x_sdio.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_sdio.c 10236 (F) 2381 (F) (23%) 1332 (P) (13%) 6523 (F) (64%) 47 (F) 12307 (F) 0.83 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_sdio.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
SDIO_DeInit 38 (P) 1 (P) 38.00 (F) 1 (P) 1 (P)
SDIO_Init 84 (P) 12 (P) 7.00 (F) 1 (P) 1 (P)
SDIO_StructInit 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
SDIO_ClockCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_SetPowerState 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)
SDIO_GetPowerState 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
SDIO_ITConfig 42 (P) 8 (P) 5.25 (P) 1 (P) 1 (P)
SDIO_DMACmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_SendCommand 69 (P) 9 (P) 7.67 (F) 1 (P) 1 (P)
SDIO_CmdStructInit 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
           
SDIO_GetCommandResponse 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
SDIO_GetResponse 31 (P) 5 (P) 6.20 (F) 1 (P) 1 (P)
SDIO_DataConfig 142 (P) 22 (P) 6.45 (F) 1 (P) 1 (P)
SDIO_DataStructInit 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
SDIO_GetDataCounter 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
SDIO_ReadData 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
SDIO_WriteData 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
SDIO_GetFIFOCount 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
SDIO_StartSDIOReadWait 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_StopSDIOReadWait 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
           
SDIO_SetSDIOReadWaitMode 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)
SDIO_SetSDIOOperation 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_SendSDIOSuspendCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_CommandCompletionCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_CEATAITCmd 25 (P) 3 (P) 8.33 (F) 1 (P) 1 (P)
SDIO_SendCEATACmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
SDIO_GetFlagStatus 142 (P) 28 (P) 5.07 (P) 1 (P) 1 (P)
SDIO_ClearFlag 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
SDIO_GetITStatus 142 (P) 28 (P) 5.07 (P) 1 (P) 1 (P)
SDIO_ClearITPendingBit 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for stm32f10x_sdio.c 1332 (P) 225 (P) 5.92 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_sdio.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
SDIO_DeInit 1335 (F) 1335 (F) (100%) 0 (P) (0%) 0 (F) (0%) 227 (F)
SDIO_Init 18 (P) 7 (P) (39%) 1 (P) (6%) 10 (P) (56%) 1 (P)
SDIO_StructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_ClockCmd 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
SDIO_SetPowerState 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 1 (P)
SDIO_GetPowerState 9 (F) 9 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_ITConfig 36 (P) 33 (P) (92%) 1 (P) (3%) 2 (P) (6%) 1 (P)
SDIO_DMACmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_SendCommand 18 (P) 7 (P) (39%) 1 (P) (6%) 10 (P) (56%) 1 (P)
SDIO_CmdStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
           
SDIO_GetCommandResponse 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_GetResponse 11 (P) 10 (P) (91%) 1 (P) (9%) 0 (F) (0%) 1 (P)
SDIO_DataConfig 20 (P) 7 (P) (35%) 1 (P) (5%) 12 (P) (60%) 1 (P)
SDIO_DataStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_GetDataCounter 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_ReadData 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_WriteData 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_GetFIFOCount 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SDIO_StartSDIOReadWait 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_StopSDIOReadWait 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
           
SDIO_SetSDIOReadWaitMode 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 1 (P)
SDIO_SetSDIOOperation 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_SendSDIOSuspendCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_CommandCompletionCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
SDIO_CEATAITCmd 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
SDIO_SendCEATACmd 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
SDIO_GetFlagStatus 32 (P) 31 (P) (97%) 1 (P) (3%) 0 (F) (0%) 1 (P)
SDIO_ClearFlag 21 (P) 20 (P) (95%) 1 (P) (5%) 0 (F) (0%) 1 (P)
SDIO_GetITStatus 32 (P) 31 (P) (97%) 1 (P) (3%) 0 (F) (0%) 1 (P)
SDIO_ClearITPendingBit 20 (P) 19 (P) (95%) 1 (P) (5%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_sdio.c 2371 (P) 2283 (P) (96%) 27 (P) (1%) 61 (P) (3%) 302 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_sdio.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
SDIO_DeInit 38 (P) 3513 (F) 3513 (F) 0 (F) 0 (F)
SDIO_Init 84 (P) 21 (P) 8 (P) 1 (P) 12 (P)
SDIO_StructInit 13 (P) 54 (P) 46 (P) 8 (P) 0 (F)
SDIO_ClockCmd 22 (P) 27 (P) 23 (P) 5 (P) 0 (F)
SDIO_SetPowerState 24 (P) 38 (P) 33 (P) 4 (P) 0 (F)
SDIO_GetPowerState 8 (P) 113 (P) 113 (P) 0 (F) 0 (F)
SDIO_ITConfig 42 (P) 86 (P) 79 (P) 2 (P) 5 (P)
SDIO_DMACmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
SDIO_SendCommand 69 (P) 26 (P) 10 (P) 1 (P) 14 (P)
SDIO_CmdStructInit 10 (P) 70 (P) 60 (P) 10 (P) 0 (F)
           
SDIO_GetCommandResponse 7 (P) 71 (P) 71 (P) 0 (F) 0 (F)
SDIO_GetResponse 31 (P) 35 (P) 32 (P) 3 (P) 0 (F)
SDIO_DataConfig 142 (P) 14 (P) 5 (P) 1 (P) 8 (P)
SDIO_DataStructInit 12 (P) 58 (P) 50 (P) 8 (P) 0 (F)
SDIO_GetDataCounter 6 (P) 83 (P) 83 (P) 0 (F) 0 (F)
SDIO_ReadData 6 (P) 83 (P) 83 (P) 0 (F) 0 (F)
SDIO_WriteData 6 (P) 83 (P) 83 (P) 0 (F) 0 (F)
SDIO_GetFIFOCount 6 (P) 83 (P) 83 (P) 0 (F) 0 (F)
SDIO_StartSDIOReadWait 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
SDIO_StopSDIOReadWait 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
           
SDIO_SetSDIOReadWaitMode 24 (P) 38 (P) 33 (P) 4 (P) 0 (F)
SDIO_SetSDIOOperation 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
SDIO_SendSDIOSuspendCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
SDIO_CommandCompletionCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
SDIO_CEATAITCmd 25 (P) 24 (P) 20 (P) 4 (P) 0 (F)
SDIO_SendCEATACmd 22 (P) 27 (P) 23 (P) 5 (P) 0 (F)
SDIO_GetFlagStatus 142 (P) 23 (P) 22 (P) 1 (P) 0 (F)
SDIO_ClearFlag 18 (P) 117 (P) 111 (P) 6 (P) 0 (F)
SDIO_GetITStatus 142 (P) 23 (P) 22 (P) 1 (P) 0 (F)
SDIO_ClearITPendingBit 18 (P) 111 (P) 106 (P) 6 (P) 0 (F)
           
Total for stm32f10x_sdio.c 1332 (P) 178 (P) 171 2 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_sdio.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
SDIO_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_Init 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
SDIO_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_ClockCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_SetPowerState 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetPowerState 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_ITConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
SDIO_DMACmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_SendCommand 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
SDIO_CmdStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
SDIO_GetCommandResponse 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetResponse 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
SDIO_DataConfig 0 (P) 18 (F) 0 (P) 1 (P) Yes (P)
SDIO_DataStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetDataCounter 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_ReadData 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_WriteData 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetFIFOCount 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SDIO_StartSDIOReadWait 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_StopSDIOReadWait 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
SDIO_SetSDIOReadWaitMode 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_SetSDIOOperation 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_SendSDIOSuspendCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_CommandCompletionCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_CEATAITCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_SendCEATACmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetFlagStatus 1 (P) 25 (F) 0 (P) 1 (P) Yes (P)
SDIO_ClearFlag 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SDIO_GetITStatus 1 (P) 25 (F) 0 (P) 1 (P) Yes (P)
SDIO_ClearITPendingBit 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_sdio.c 19 (P) 112 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_sdio.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_sdio.c 1597 (F) 27926 (F) 25 (P) 617 (F) 642 (F) 29523 (F) 275344 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_sdio.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
SDIO_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_ClockCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_SetPowerState 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetPowerState 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_SendCommand 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_CmdStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
SDIO_GetCommandResponse 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetResponse 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_DataConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_DataStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetDataCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_ReadData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_WriteData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetFIFOCount 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_StartSDIOReadWait 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_StopSDIOReadWait 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
SDIO_SetSDIOReadWaitMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_SetSDIOOperation 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_SendSDIOSuspendCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_CommandCompletionCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_CEATAITCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_SendCEATACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SDIO_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_sdio.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_sdio.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_sdio.c 252 (P) 250 (P) 2 (P) 25 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_sdio.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
SDIO_DeInit 0 (P) 0 (P) 0 (P)
SDIO_Init 0 (P) 0 (P) 1 (P)
SDIO_StructInit 0 (P) 0 (P) 0 (P)
SDIO_ClockCmd 0 (P) 0 (P) 1 (P)
SDIO_SetPowerState 0 (P) 0 (P) 1 (P)
SDIO_GetPowerState 0 (P) 0 (P) 0 (P)
SDIO_ITConfig 0 (P) 0 (P) 1 (P)
SDIO_DMACmd 0 (P) 0 (P) 1 (P)
SDIO_SendCommand 0 (P) 0 (P) 1 (P)
SDIO_CmdStructInit 0 (P) 0 (P) 0 (P)
       
SDIO_GetCommandResponse 0 (P) 0 (P) 0 (P)
SDIO_GetResponse 0 (P) 0 (P) 1 (P)
SDIO_DataConfig 0 (P) 0 (P) 1 (P)
SDIO_DataStructInit 0 (P) 0 (P) 0 (P)
SDIO_GetDataCounter 0 (P) 0 (P) 0 (P)
SDIO_ReadData 0 (P) 0 (P) 0 (P)
SDIO_WriteData 0 (P) 0 (P) 0 (P)
SDIO_GetFIFOCount 0 (P) 0 (P) 0 (P)
SDIO_StartSDIOReadWait 0 (P) 0 (P) 1 (P)
SDIO_StopSDIOReadWait 0 (P) 0 (P) 1 (P)
       
SDIO_SetSDIOReadWaitMode 0 (P) 0 (P) 1 (P)
SDIO_SetSDIOOperation 0 (P) 0 (P) 1 (P)
SDIO_SendSDIOSuspendCmd 0 (P) 0 (P) 1 (P)
SDIO_CommandCompletionCmd 0 (P) 0 (P) 1 (P)
SDIO_CEATAITCmd 0 (P) 0 (P) 1 (P)
SDIO_SendCEATACmd 0 (P) 0 (P) 1 (P)
SDIO_GetFlagStatus 0 (P) 0 (P) 1 (P)
SDIO_ClearFlag 0 (P) 0 (P) 1 (P)
SDIO_GetITStatus 0 (P) 0 (P) 1 (P)
SDIO_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_sdio.c 2 (P) 1 (P) 22 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_rtc.c


Reformatted Code Information for File (stm32f10x_rtc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_rtc.c 8298 (F) 1803 (F) (22%) 574 (P) (7%) 5921 (F) (71%) 31 (P) 10725 (F) 0.77 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_rtc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
RTC_ITConfig 42 (P) 8 (P) 5.25 (P) 1 (P) 1 (P)
RTC_EnterConfigMode 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
RTC_ExitConfigMode 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
RTC_GetCounter 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
RTC_SetCounter 15 (P) 1 (P) 15.00 (F) 1 (P) 1 (P)
RTC_SetPrescaler 19 (P) 1 (P) 19.00 (F) 1 (P) 1 (P)
RTC_SetAlarm 15 (P) 1 (P) 15.00 (F) 1 (P) 1 (P)
RTC_GetDivider 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
RTC_WaitForLastTask 13 (P) 4 (P) 3.25 (P) 1 (P) 1 (P)
RTC_WaitForSynchro 18 (P) 4 (P) 4.50 (P) 1 (P) 1 (P)
           
RTC_GetFlagStatus 47 (P) 9 (P) 5.22 (P) 1 (P) 1 (P)
RTC_ClearFlag 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
RTC_GetITStatus 47 (P) 9 (P) 5.22 (P) 1 (P) 1 (P)
RTC_ClearITPendingBit 18 (P) 3 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for stm32f10x_rtc.c 574 (P) 111 (P) 5.17 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_rtc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
RTC_ITConfig 991 (F) 990 (F) (100%) 1 (P) (0%) 0 (F) (0%) 144 (F)
RTC_EnterConfigMode 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
RTC_ExitConfigMode 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
RTC_GetCounter 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
RTC_SetCounter 7 (F) 5 (P) (71%) 0 (P) (0%) 2 (P) (29%) 1 (P)
RTC_SetPrescaler 8 (F) 5 (P) (63%) 1 (P) (13%) 2 (P) (25%) 1 (P)
RTC_SetAlarm 7 (F) 5 (P) (71%) 0 (P) (0%) 2 (P) (29%) 1 (P)
RTC_GetDivider 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
RTC_WaitForLastTask 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RTC_WaitForSynchro 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 1 (P)
           
RTC_GetFlagStatus 12 (P) 11 (P) (92%) 1 (P) (8%) 0 (F) (0%) 1 (P)
RTC_ClearFlag 13 (P) 11 (P) (85%) 1 (P) (8%) 1 (P) (8%) 1 (P)
RTC_GetITStatus 10 (P) 9 (P) (90%) 1 (P) (10%) 0 (F) (0%) 1 (P)
RTC_ClearITPendingBit 11 (P) 9 (P) (82%) 1 (P) (9%) 1 (P) (9%) 2 (P)
           
Total for stm32f10x_rtc.c 1793 (P) 1743 (F) (97%) 14 (P) (1%) 36 (P) (2%) 203 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_rtc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
RTC_ITConfig 42 (P) 2360 (F) 2357 (F) 2 (P) 0 (F)
RTC_EnterConfigMode 7 (P) 86 (P) 71 (P) 14 (P) 0 (F)
RTC_ExitConfigMode 8 (P) 75 (P) 63 (P) 13 (P) 0 (F)
RTC_GetCounter 12 (P) 42 (P) 42 (P) 0 (F) 0 (F)
RTC_SetCounter 15 (P) 47 (P) 33 (P) 0 (F) 13 (P)
RTC_SetPrescaler 19 (P) 42 (P) 26 (P) 5 (P) 11 (P)
RTC_SetAlarm 15 (P) 47 (P) 33 (P) 0 (F) 13 (P)
RTC_GetDivider 12 (P) 42 (P) 42 (P) 0 (F) 0 (F)
RTC_WaitForLastTask 13 (P) 54 (P) 46 (P) 8 (P) 0 (F)
RTC_WaitForSynchro 18 (P) 56 (P) 44 (P) 6 (P) 6 (P)
           
RTC_GetFlagStatus 47 (P) 26 (P) 23 (P) 2 (P) 0 (F)
RTC_ClearFlag 18 (P) 72 (P) 61 (P) 6 (P) 6 (P)
RTC_GetITStatus 47 (P) 21 (P) 19 (P) 2 (P) 0 (F)
RTC_ClearITPendingBit 18 (P) 61 (P) 50 (P) 6 (P) 6 (P)
           
Total for stm32f10x_rtc.c 574 (P) 312 (F) 304 2 (P) 6 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_rtc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
RTC_ITConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RTC_EnterConfigMode 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_ExitConfigMode 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_GetCounter 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_SetCounter 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_SetPrescaler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_SetAlarm 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_GetDivider 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RTC_WaitForLastTask 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RTC_WaitForSynchro 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
RTC_GetFlagStatus 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
RTC_ClearFlag 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RTC_GetITStatus 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RTC_ClearITPendingBit 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_rtc.c 21 (P) 33 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_rtc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_rtc.c 788 (F) 25117 (F) 25 (P) 507 (F) 532 (F) 25905 (F) 234577 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_rtc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
RTC_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_EnterConfigMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_ExitConfigMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_GetCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_SetCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_SetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_SetAlarm 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_GetDivider 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_WaitForLastTask 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
RTC_WaitForSynchro 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
           
RTC_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RTC_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_rtc.c 4 (P) 1 (P) 6 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_rtc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_rtc.c 129 (P) 127 (P) 2 (P) 6 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_rtc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
RTC_ITConfig 0 (P) 0 (P) 1 (P)
RTC_EnterConfigMode 0 (P) 3 (P) 0 (P)
RTC_ExitConfigMode 0 (P) 3 (P) 0 (P)
RTC_GetCounter 0 (P) 0 (P) 0 (P)
RTC_SetCounter 0 (P) 0 (P) 2 (P)
RTC_SetPrescaler 0 (P) 0 (P) 3 (P)
RTC_SetAlarm 0 (P) 0 (P) 2 (P)
RTC_GetDivider 0 (P) 0 (P) 0 (P)
RTC_WaitForLastTask 0 (P) 0 (P) 0 (P)
RTC_WaitForSynchro 0 (P) 0 (P) 0 (P)
       
RTC_GetFlagStatus 0 (P) 0 (P) 1 (P)
RTC_ClearFlag 0 (P) 0 (P) 1 (P)
RTC_GetITStatus 0 (P) 0 (P) 1 (P)
RTC_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_rtc.c 2 (P) 7 (P) 14 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_rcc.c


Reformatted Code Information for File (stm32f10x_rcc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_rcc.c 10258 (F) 2355 (F) (23%) 1611 (P) (16%) 6292 (F) (61%) 49 (F) 12448 (F) 0.83 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_rcc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
RCC_DeInit 32 (P) 1 (P) 32.00 (F) 1 (P) 1 (P)
RCC_HSEConfig 56 (P) 9 (P) 6.22 (F) 1 (P) 1 (P)
RCC_WaitForHSEStartUp 35 (P) 8 (P) 4.37 (P) 1 (P) 1 (P)
RCC_AdjustHSICalibrationValue 18 (P) 1 (P) 18.00 (F) 1 (P) 1 (P)
RCC_HSICmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_PLLConfig 111 (P) 19 (P) 5.84 (P) 1 (P) 1 (P)
RCC_PLLCmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_SYSCLKConfig 33 (P) 4 (P) 8.25 (F) 1 (P) 1 (P)
RCC_GetSYSCLKSource 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
RCC_HCLKConfig 63 (P) 10 (P) 6.30 (F) 1 (P) 1 (P)
           
RCC_PCLK1Config 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
RCC_PCLK2Config 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
RCC_ITConfig 38 (P) 8 (P) 4.75 (P) 1 (P) 1 (P)
RCC_USBCLKConfig 25 (P) 3 (P) 8.33 (F) 1 (P) 1 (P)
RCC_ADCCLKConfig 38 (P) 5 (P) 7.60 (F) 1 (P) 1 (P)
RCC_LSEConfig 72 (P) 9 (P) 8.00 (F) 1 (P) 1 (P)
RCC_LSICmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_RTCCLKConfig 25 (P) 4 (P) 6.25 (F) 1 (P) 1 (P)
RCC_RTCCLKCmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_GetClocksFreq 109 (P) 13 (P) 8.38 (F) 1 (P) 1 (P)
           
RCC_AHBPeriphClockCmd 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
RCC_APB2PeriphClockCmd 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
RCC_APB1PeriphClockCmd 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
RCC_APB2PeriphResetCmd 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
RCC_APB1PeriphResetCmd 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
RCC_BackupResetCmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_ClockSecuritySystemCmd 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
RCC_MCOConfig 32 (P) 6 (P) 5.33 (P) 1 (P) 1 (P)
RCC_GetFlagStatus 110 (P) 21 (P) 5.24 (P) 1 (P) 1 (P)
RCC_ClearFlag 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
           
RCC_GetITStatus 53 (P) 10 (P) 5.30 (P) 1 (P) 1 (P)
RCC_ClearITPendingBit 16 (P) 3 (P) 5.33 (P) 1 (P) 1 (P)
           
Total for stm32f10x_rcc.c 1611 (P) 270 (P) 5.97 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_rcc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
RCC_DeInit 1132 (F) 1124 (F) (99%) 1 (P) (0%) 7 (P) (1%) 176 (F)
RCC_HSEConfig 17 (P) 10 (P) (59%) 1 (P) (6%) 6 (P) (35%) 1 (P)
RCC_WaitForHSEStartUp 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
RCC_AdjustHSICalibrationValue 10 (P) 6 (P) (60%) 1 (P) (10%) 3 (P) (30%) 1 (P)
RCC_HSICmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RCC_PLLConfig 21 (P) 17 (P) (81%) 1 (P) (5%) 3 (P) (14%) 1 (P)
RCC_PLLCmd 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
RCC_SYSCLKConfig 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
RCC_GetSYSCLKSource 9 (F) 9 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
RCC_HCLKConfig 20 (P) 16 (P) (80%) 1 (P) (5%) 3 (P) (15%) 1 (P)
           
RCC_PCLK1Config 16 (P) 12 (P) (75%) 1 (P) (6%) 3 (P) (19%) 1 (P)
RCC_PCLK2Config 16 (P) 12 (P) (75%) 1 (P) (6%) 3 (P) (19%) 1 (P)
RCC_ITConfig 29 (P) 26 (P) (90%) 1 (P) (3%) 2 (P) (7%) 1 (P)
RCC_USBCLKConfig 12 (P) 10 (P) (83%) 1 (P) (8%) 1 (P) (8%) 1 (P)
RCC_ADCCLKConfig 16 (P) 11 (P) (69%) 1 (P) (6%) 4 (P) (25%) 1 (P)
RCC_LSEConfig 16 (P) 9 (P) (56%) 1 (P) (6%) 6 (P) (38%) 1 (P)
RCC_LSICmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RCC_RTCCLKConfig 12 (P) 10 (P) (83%) 1 (P) (8%) 1 (P) (8%) 1 (P)
RCC_RTCCLKCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RCC_GetClocksFreq 27 (P) 8 (P) (30%) 2 (P) (7%) 17 (P) (63%) 1 (P)
           
RCC_AHBPeriphClockCmd 32 (P) 31 (P) (97%) 1 (P) (3%) 0 (F) (0%) 1 (P)
RCC_APB2PeriphClockCmd 16 (P) 15 (P) (94%) 1 (P) (6%) 0 (F) (0%) 1 (P)
RCC_APB1PeriphClockCmd 18 (P) 16 (P) (89%) 1 (P) (6%) 1 (P) (6%) 1 (P)
RCC_APB2PeriphResetCmd 16 (P) 15 (P) (94%) 1 (P) (6%) 0 (F) (0%) 1 (P)
RCC_APB1PeriphResetCmd 17 (P) 16 (P) (94%) 1 (P) (6%) 0 (F) (0%) 1 (P)
RCC_BackupResetCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RCC_ClockSecuritySystemCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
RCC_MCOConfig 27 (P) 25 (P) (93%) 1 (P) (4%) 1 (P) (4%) 1 (P)
RCC_GetFlagStatus 42 (P) 35 (P) (83%) 1 (P) (2%) 6 (P) (14%) 1 (P)
RCC_ClearFlag 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
           
RCC_GetITStatus 28 (P) 25 (P) (89%) 1 (P) (4%) 2 (P) (7%) 1 (P)
RCC_ClearITPendingBit 29 (P) 26 (P) (90%) 1 (P) (3%) 2 (P) (7%) 2 (P)
           
Total for stm32f10x_rcc.c 2345 (P) 2207 (P) (94%) 36 (P) (2%) 102 (P) (4%) 253 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_rcc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
RCC_DeInit 32 (P) 3538 (F) 3513 (F) 3 (P) 22 (P)
RCC_HSEConfig 56 (P) 30 (P) 18 (P) 2 (P) 11 (P)
RCC_WaitForHSEStartUp 35 (P) 23 (P) 20 (P) 3 (P) 0 (F)
RCC_AdjustHSICalibrationValue 18 (P) 56 (P) 33 (P) 6 (P) 17 (P)
RCC_HSICmd 23 (P) 30 (P) 26 (P) 4 (P) 0 (F)
RCC_PLLConfig 111 (P) 19 (P) 15 (P) 1 (P) 3 (F)
RCC_PLLCmd 23 (P) 35 (P) 26 (P) 4 (P) 4 (F)
RCC_SYSCLKConfig 33 (P) 39 (P) 27 (P) 3 (P) 9 (P)
RCC_GetSYSCLKSource 10 (P) 90 (P) 90 (P) 0 (F) 0 (F)
RCC_HCLKConfig 63 (P) 32 (P) 25 (P) 2 (P) 5 (P)
           
RCC_PCLK1Config 43 (P) 37 (P) 28 (P) 2 (P) 7 (P)
RCC_PCLK2Config 43 (P) 37 (P) 28 (P) 2 (P) 7 (P)
RCC_ITConfig 38 (P) 76 (P) 68 (P) 3 (P) 5 (P)
RCC_USBCLKConfig 25 (P) 48 (P) 40 (P) 4 (P) 4 (F)
RCC_ADCCLKConfig 38 (P) 42 (P) 29 (P) 3 (P) 11 (P)
RCC_LSEConfig 72 (P) 22 (P) 13 (P) 1 (P) 8 (P)
RCC_LSICmd 23 (P) 30 (P) 26 (P) 4 (P) 0 (F)
RCC_RTCCLKConfig 25 (P) 48 (P) 40 (P) 4 (P) 4 (F)
RCC_RTCCLKCmd 23 (P) 30 (P) 26 (P) 4 (P) 0 (F)
RCC_GetClocksFreq 109 (P) 25 (P) 7 (P) 2 (P) 16 (P)
           
RCC_AHBPeriphClockCmd 44 (P) 73 (P) 70 (P) 2 (P) 0 (F)
RCC_APB2PeriphClockCmd 44 (P) 36 (P) 34 (P) 2 (P) 0 (F)
RCC_APB1PeriphClockCmd 44 (P) 41 (P) 36 (P) 2 (P) 2 (F)
RCC_APB2PeriphResetCmd 44 (P) 36 (P) 34 (P) 2 (P) 0 (F)
RCC_APB1PeriphResetCmd 44 (P) 39 (P) 36 (P) 2 (P) 0 (F)
RCC_BackupResetCmd 23 (P) 30 (P) 26 (P) 4 (P) 0 (F)
RCC_ClockSecuritySystemCmd 23 (P) 30 (P) 26 (P) 4 (P) 0 (F)
RCC_MCOConfig 32 (P) 84 (P) 78 (P) 3 (P) 3 (F)
RCC_GetFlagStatus 110 (P) 38 (P) 32 (P) 1 (P) 5 (P)
RCC_ClearFlag 8 (P) 100 (P) 88 (P) 13 (P) 0 (F)
           
RCC_GetITStatus 53 (P) 53 (P) 47 (P) 2 (P) 4 (F)
RCC_ClearITPendingBit 16 (P) 181 (P) 163 (P) 6 (P) 13 (P)
           
Total for stm32f10x_rcc.c 1611 (P) 146 (P) 137 2 (P) 6 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_rcc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
RCC_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RCC_HSEConfig 3 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RCC_WaitForHSEStartUp 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_AdjustHSICalibrationValue 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RCC_HSICmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_PLLConfig 0 (P) 17 (F) 0 (P) 1 (P) Yes (P)
RCC_PLLCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_SYSCLKConfig 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
RCC_GetSYSCLKSource 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
RCC_HCLKConfig 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
           
RCC_PCLK1Config 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RCC_PCLK2Config 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RCC_ITConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_USBCLKConfig 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_ADCCLKConfig 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_LSEConfig 3 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RCC_LSICmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_RTCCLKConfig 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
RCC_RTCCLKCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_GetClocksFreq 8 (F) 6 (P) 0 (P) 1 (P) Yes (P)
           
RCC_AHBPeriphClockCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_APB2PeriphClockCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_APB1PeriphClockCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_APB2PeriphResetCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_APB1PeriphResetCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
RCC_BackupResetCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_ClockSecuritySystemCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
RCC_MCOConfig 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
RCC_GetFlagStatus 3 (P) 14 (F) 0 (P) 1 (P) Yes (P)
RCC_ClearFlag 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
RCC_GetITStatus 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
RCC_ClearITPendingBit 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_rcc.c 41 (P) 121 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_rcc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_rcc.c 1537 (F) 26788 (F) 28 (P) 576 (F) 604 (F) 28325 (F) 261677 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_rcc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
RCC_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_HSEConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_WaitForHSEStartUp 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
RCC_AdjustHSICalibrationValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_HSICmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_PLLConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_PLLCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_SYSCLKConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_GetSYSCLKSource 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_HCLKConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
RCC_PCLK1Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_PCLK2Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_USBCLKConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_ADCCLKConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_LSEConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_LSICmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_RTCCLKConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_RTCCLKCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_GetClocksFreq 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
RCC_AHBPeriphClockCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_APB2PeriphClockCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_APB1PeriphClockCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_APB2PeriphResetCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_APB1PeriphResetCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_BackupResetCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_ClockSecuritySystemCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_MCOConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
RCC_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
RCC_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_rcc.c 3 (P) 1 (P) 5 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_rcc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_rcc.c 315 (P) 313 (P) 2 (P) 30 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_rcc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
RCC_DeInit 0 (P) 0 (P) 0 (P)
RCC_HSEConfig 0 (P) 0 (P) 1 (P)
RCC_WaitForHSEStartUp 0 (P) 0 (P) 1 (P)
RCC_AdjustHSICalibrationValue 0 (P) 0 (P) 1 (P)
RCC_HSICmd 0 (P) 0 (P) 1 (P)
RCC_PLLConfig 0 (P) 0 (P) 1 (P)
RCC_PLLCmd 0 (P) 0 (P) 1 (P)
RCC_SYSCLKConfig 0 (P) 0 (P) 1 (P)
RCC_GetSYSCLKSource 0 (P) 0 (P) 0 (P)
RCC_HCLKConfig 0 (P) 0 (P) 1 (P)
       
RCC_PCLK1Config 0 (P) 0 (P) 1 (P)
RCC_PCLK2Config 0 (P) 0 (P) 1 (P)
RCC_ITConfig 0 (P) 0 (P) 1 (P)
RCC_USBCLKConfig 0 (P) 0 (P) 1 (P)
RCC_ADCCLKConfig 0 (P) 0 (P) 1 (P)
RCC_LSEConfig 0 (P) 0 (P) 1 (P)
RCC_LSICmd 0 (P) 0 (P) 1 (P)
RCC_RTCCLKConfig 0 (P) 0 (P) 1 (P)
RCC_RTCCLKCmd 0 (P) 0 (P) 1 (P)
RCC_GetClocksFreq 0 (P) 0 (P) 0 (P)
       
RCC_AHBPeriphClockCmd 0 (P) 0 (P) 1 (P)
RCC_APB2PeriphClockCmd 0 (P) 0 (P) 1 (P)
RCC_APB1PeriphClockCmd 0 (P) 0 (P) 1 (P)
RCC_APB2PeriphResetCmd 0 (P) 0 (P) 1 (P)
RCC_APB1PeriphResetCmd 0 (P) 0 (P) 1 (P)
RCC_BackupResetCmd 0 (P) 0 (P) 1 (P)
RCC_ClockSecuritySystemCmd 0 (P) 0 (P) 1 (P)
RCC_MCOConfig 0 (P) 0 (P) 1 (P)
RCC_GetFlagStatus 0 (P) 1 (P) 1 (P)
RCC_ClearFlag 0 (P) 0 (P) 0 (P)
       
RCC_GetITStatus 0 (P) 0 (P) 1 (P)
RCC_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_rcc.c 2 (P) 2 (P) 30 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_pwr.c


Reformatted Code Information for File (stm32f10x_pwr.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_pwr.c 8728 (F) 1987 (F) (23%) 546 (P) (6%) 6195 (F) (71%) 26 (P) 11440 (F) 0.76 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_pwr.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
PWR_DeInit 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
PWR_BackupAccessCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
PWR_PVDCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
PWR_PVDLevelConfig 56 (P) 9 (P) 6.22 (F) 1 (P) 1 (P)
PWR_WakeUpPinCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
PWR_EnterSTOPMode 60 (P) 8 (P) 7.50 (F) 1 (P) 1 (P)
PWR_EnterSTANDBYMode 17 (P) 1 (P) 17.00 (F) 1 (P) 1 (P)
PWR_GetFlagStatus 37 (P) 7 (P) 5.29 (P) 1 (P) 1 (P)
PWR_ClearFlag 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
           
Total for stm32f10x_pwr.c 546 (P) 102 (P) 5.35 (P) 1 (P) 6 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_pwr.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
PWR_DeInit 1191 (F) 1191 (F) (100%) 0 (P) (0%) 0 (F) (0%) 197 (F)
PWR_BackupAccessCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
PWR_PVDCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
PWR_PVDLevelConfig 18 (P) 14 (P) (78%) 1 (P) (6%) 3 (P) (17%) 1 (P)
PWR_WakeUpPinCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
PWR_EnterSTOPMode 22 (P) 12 (P) (55%) 1 (P) (5%) 9 (P) (41%) 1 (P)
PWR_EnterSTANDBYMode 10 (P) 5 (P) (50%) 1 (P) (10%) 4 (P) (40%) 1 (P)
PWR_GetFlagStatus 11 (P) 9 (P) (82%) 1 (P) (9%) 1 (P) (9%) 1 (P)
PWR_ClearFlag 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_pwr.c 1977 (P) 1921 (F) (97%) 12 (P) (1%) 44 (P) (2%) 251 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_pwr.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
PWR_DeInit 8 (P) 14888 (F) 14888 (F) 0 (F) 0 (F)
PWR_BackupAccessCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
PWR_PVDCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
PWR_PVDLevelConfig 56 (P) 32 (P) 25 (P) 2 (P) 5 (P)
PWR_WakeUpPinCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
PWR_EnterSTOPMode 60 (P) 37 (P) 20 (P) 2 (P) 15 (P)
PWR_EnterSTANDBYMode 17 (P) 59 (P) 29 (P) 6 (P) 24 (P)
PWR_GetFlagStatus 37 (P) 30 (P) 24 (P) 3 (P) 3 (F)
PWR_ClearFlag 19 (P) 47 (P) 42 (P) 5 (P) 0 (F)
           
Total for stm32f10x_pwr.c 546 (P) 362 (F) 352 2 (P) 8 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_pwr.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
PWR_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
PWR_BackupAccessCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
PWR_PVDCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
PWR_PVDLevelConfig 0 (P) 8 (P) 0 (P) 1 (P) Yes (P)
PWR_WakeUpPinCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
PWR_EnterSTOPMode 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
PWR_EnterSTANDBYMode 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
PWR_GetFlagStatus 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
PWR_ClearFlag 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_pwr.c 18 (P) 34 (P) 0 (P) 1 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_pwr.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_pwr.c 942 (F) 26463 (F) 25 (P) 545 (F) 570 (F) 27405 (F) 250887 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_pwr.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
PWR_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_BackupAccessCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_PVDCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_PVDLevelConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_WakeUpPinCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_EnterSTOPMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_EnterSTANDBYMode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
PWR_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_pwr.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_pwr.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_pwr.c 105 (P) 103 (P) 2 (P) 8 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_pwr.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
PWR_DeInit 0 (P) 0 (P) 1 (P)
PWR_BackupAccessCmd 0 (P) 0 (P) 1 (P)
PWR_PVDCmd 0 (P) 0 (P) 1 (P)
PWR_PVDLevelConfig 0 (P) 0 (P) 1 (P)
PWR_WakeUpPinCmd 0 (P) 0 (P) 1 (P)
PWR_EnterSTOPMode 0 (P) 0 (P) 3 (P)
PWR_EnterSTANDBYMode 0 (P) 0 (P) 1 (P)
PWR_GetFlagStatus 0 (P) 0 (P) 1 (P)
PWR_ClearFlag 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_pwr.c 2 (P) 1 (P) 13 (P)
       

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_iwdg.c


Reformatted Code Information for File (stm32f10x_iwdg.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_iwdg.c 8001 (F) 1743 (F) (22%) 401 (P) (5%) 5857 (F) (73%) 23 (P) 10581 (F) 0.76 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_iwdg.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
IWDG_WriteAccessCmd 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
IWDG_SetPrescaler 44 (P) 8 (P) 5.50 (P) 1 (P) 1 (P)
IWDG_SetReload 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
IWDG_ReloadCounter 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
IWDG_Enable 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
IWDG_GetFlagStatus 32 (P) 6 (P) 5.33 (P) 1 (P) 1 (P)
           
Total for stm32f10x_iwdg.c 401 (P) 84 (P) 4.77 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_iwdg.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
IWDG_WriteAccessCmd 996 (F) 995 (F) (100%) 1 (P) (0%) 0 (F) (0%) 146 (F)
IWDG_SetPrescaler 14 (P) 13 (P) (93%) 1 (P) (7%) 0 (F) (0%) 1 (P)
IWDG_SetReload 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
IWDG_ReloadCounter 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
IWDG_Enable 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
IWDG_GetFlagStatus 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 2 (P)
           
Total for stm32f10x_iwdg.c 1733 (P) 1697 (F) (98%) 8 (P) (0%) 28 (P) (2%) 197 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_iwdg.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
IWDG_WriteAccessCmd 19 (P) 5242 (F) 5237 (F) 5 (P) 0 (F)
IWDG_SetPrescaler 44 (P) 32 (P) 30 (P) 2 (P) 0 (F)
IWDG_SetReload 9 (P) 78 (P) 67 (P) 11 (P) 0 (F)
IWDG_ReloadCounter 7 (P) 86 (P) 86 (P) 0 (F) 0 (F)
IWDG_Enable 7 (P) 71 (P) 71 (P) 0 (F) 0 (F)
IWDG_GetFlagStatus 32 (P) 31 (P) 25 (P) 3 (P) 3 (F)
           
Total for stm32f10x_iwdg.c 401 (P) 432 (F) 423 2 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_iwdg.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
IWDG_WriteAccessCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
IWDG_SetPrescaler 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
IWDG_SetReload 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
IWDG_ReloadCounter 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
IWDG_Enable 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
IWDG_GetFlagStatus 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_iwdg.c 17 (P) 26 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_iwdg.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_iwdg.c 685 (P) 25043 (F) 24 (P) 500 (F) 524 (F) 25728 (F) 232411 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_iwdg.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
IWDG_WriteAccessCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IWDG_SetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IWDG_SetReload 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IWDG_ReloadCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IWDG_Enable 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IWDG_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_iwdg.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_iwdg.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_iwdg.c 84 (P) 82 (P) 2 (P) 7 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_iwdg.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
IWDG_WriteAccessCmd 0 (P) 0 (P) 1 (P)
IWDG_SetPrescaler 0 (P) 0 (P) 1 (P)
IWDG_SetReload 0 (P) 0 (P) 1 (P)
IWDG_ReloadCounter 0 (P) 0 (P) 0 (P)
IWDG_Enable 0 (P) 0 (P) 0 (P)
IWDG_GetFlagStatus 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_iwdg.c 2 (P) 1 (P) 6 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_it.c


Reformatted Code Information for File (stm32f10x_it.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_it.c 8069 (F) 1684 (F) (21%) 461 (P) (6%) 5924 (F) (73%) 29 (P) 10598 (F) 0.76 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_it.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
DMA1_Channel5_IRQHandler 74 (P) 25 (P) 2.96 (P) 1 (P) 1 (P)
EXTI4_IRQHandler 9 (P) 3 (P) 3.00 (P) 1 (P) 1 (P)
TIM1_UP_IRQHandler 53 (P) 8 (P) 6.62 (F) 1 (P) 1 (P)
NMI_Handler 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
HardFault_Handler 8 (P) 4 (P) 2.00 (P) 1 (P) 1 (P)
MemManage_Handler 8 (P) 4 (P) 2.00 (P) 1 (P) 1 (P)
BusFault_Handler 8 (P) 4 (P) 2.00 (P) 1 (P) 1 (P)
UsageFault_Handler 8 (P) 4 (P) 2.00 (P) 1 (P) 1 (P)
SVC_Handler 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
DebugMon_Handler 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
           
PendSV_Handler 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
SysTick_Handler 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
           
Total for stm32f10x_it.c 461 (P) 121 (P) 3.81 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_it.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
DMA1_Channel5_IRQHandler 913 (F) 908 (F) (99%) 2 (P) (0%) 3 (P) (0%) 116 (F)
EXTI4_IRQHandler 0 (F) 0 (F) (0%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TIM1_UP_IRQHandler 6 (F) 0 (F) (0%) 0 (P) (0%) 6 (P) (100%) 1 (P)
NMI_Handler 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
HardFault_Handler 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
MemManage_Handler 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
BusFault_Handler 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
UsageFault_Handler 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
SVC_Handler 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
DebugMon_Handler 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
PendSV_Handler 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
SysTick_Handler 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
Total for stm32f10x_it.c 1666 (P) 1620 (F) (97%) 10 (P) (1%) 36 (P) (2%) 172 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_it.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
DMA1_Channel5_IRQHandler 74 (P) 1234 (F) 1227 (F) 3 (P) 4 (F)
EXTI4_IRQHandler 9 (P) 0 (F) 0 (P) 0 (F) 0 (F)
TIM1_UP_IRQHandler 53 (P) 11 (P) 0 (P) 0 (F) 11 (P)
NMI_Handler 2 (P) 250 (F) 250 (P) 0 (F) 0 (F)
HardFault_Handler 8 (P) 75 (P) 63 (P) 13 (P) 0 (F)
MemManage_Handler 8 (P) 75 (P) 63 (P) 13 (P) 0 (F)
BusFault_Handler 8 (P) 75 (P) 63 (P) 13 (P) 0 (F)
UsageFault_Handler 8 (P) 75 (P) 63 (P) 13 (P) 0 (F)
SVC_Handler 2 (P) 250 (F) 250 (P) 0 (F) 0 (F)
DebugMon_Handler 2 (P) 250 (F) 250 (P) 0 (F) 0 (F)
           
PendSV_Handler 2 (P) 250 (F) 250 (P) 0 (F) 0 (F)
SysTick_Handler 2 (P) 250 (F) 250 (P) 0 (F) 0 (F)
           
Total for stm32f10x_it.c 461 (P) 361 (F) 351 2 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_it.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
DMA1_Channel5_IRQHandler 24 (F) 7 (P) 0 (P) 1 (P) Yes (P)
EXTI4_IRQHandler 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
TIM1_UP_IRQHandler 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
NMI_Handler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
HardFault_Handler 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
MemManage_Handler 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
BusFault_Handler 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
UsageFault_Handler 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
SVC_Handler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DebugMon_Handler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
PendSV_Handler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SysTick_Handler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_it.c 45 (P) 31 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_it.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_it.c 718 (F) 24997 (F) 27 (P) 532 (F) 559 (F) 25715 (F) 234693 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_it.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
DMA1_Channel5_IRQHandler 6 (F) 1 (P) 7 (F) 2 (P) Yes (P)
EXTI4_IRQHandler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM1_UP_IRQHandler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
NMI_Handler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
HardFault_Handler 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
MemManage_Handler 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
BusFault_Handler 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
UsageFault_Handler 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
SVC_Handler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DebugMon_Handler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
PendSV_Handler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SysTick_Handler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_it.c 12 (P) 1 (P) 14 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_it.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_it.c 124 (P) 116 (P) 8 (P) 6 (P) 0 (P) 9 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_it.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
DMA1_Channel5_IRQHandler 21 (P) 0 (P) 2 (P)
EXTI4_IRQHandler 0 (P) 0 (P) 2 (P)
TIM1_UP_IRQHandler 11 (P) 0 (P) 12 (F)
NMI_Handler 0 (P) 0 (P) 0 (P)
HardFault_Handler 0 (P) 0 (P) 0 (P)
MemManage_Handler 0 (P) 0 (P) 0 (P)
BusFault_Handler 0 (P) 0 (P) 0 (P)
UsageFault_Handler 0 (P) 0 (P) 0 (P)
SVC_Handler 0 (P) 0 (P) 0 (P)
DebugMon_Handler 0 (P) 0 (P) 0 (P)
       
PendSV_Handler 0 (P) 0 (P) 0 (P)
SysTick_Handler 0 (P) 0 (P) 0 (P)
       
Total for stm32f10x_it.c 34 (P) 1 (P) 18 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_i2c.c


Reformatted Code Information for File (stm32f10x_i2c.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_i2c.c 11478 (F) 2853 (F) (25%) 2012 (F) (18%) 6613 (F) (58%) 50 (F) 12992 (F) 0.88 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_i2c.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
I2C_DeInit 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
I2C_Init 162 (P) 24 (P) 6.75 (F) 1 (P) 1 (P)
I2C_StructInit 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
I2C_Cmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_DMACmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_DMALastTransferCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_GenerateSTART 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_GenerateSTOP 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_AcknowledgeConfig 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_OwnAddress2Config 25 (P) 3 (P) 8.33 (F) 1 (P) 1 (P)
           
I2C_DualAddressCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_GeneralCallCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_ITConfig 53 (P) 10 (P) 5.30 (P) 1 (P) 1 (P)
I2C_SendData 20 (P) 3 (P) 6.67 (F) 1 (P) 1 (P)
I2C_ReceiveData 20 (P) 3 (P) 6.67 (F) 1 (P) 1 (P)
I2C_Send7bitAddress 47 (P) 8 (P) 5.87 (P) 1 (P) 1 (P)
I2C_ReadRegister 70 (P) 12 (P) 5.83 (P) 1 (P) 1 (P)
I2C_SoftwareResetCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_NACKPositionConfig 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
I2C_SMBusAlertConfig 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
           
I2C_TransmitPEC 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_PECPositionConfig 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
I2C_CalculatePEC 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_GetPEC 21 (P) 3 (P) 7.00 (F) 1 (P) 1 (P)
I2C_ARPCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_StretchClockCmd 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
I2C_FastModeDutyCycleConfig 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
I2C_CheckEvent 148 (P) 26 (P) 5.69 (P) 1 (P) 1 (P)
I2C_GetLastEvent 25 (P) 3 (P) 8.33 (F) 1 (P) 1 (P)
I2C_GetFlagStatus 157 (P) 30 (P) 5.23 (P) 1 (P) 1 (P)
           
I2C_ClearFlag 34 (P) 5 (P) 6.80 (F) 1 (P) 1 (P)
I2C_GetITStatus 115 (P) 22 (P) 5.23 (P) 1 (P) 1 (P)
I2C_ClearITPendingBit 34 (P) 5 (P) 6.80 (F) 1 (P) 1 (P)
           
Total for stm32f10x_i2c.c 2012 (P) 364 (P) 5.53 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_i2c.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
I2C_DeInit 1529 (F) 1524 (F) (100%) 1 (P) (0%) 4 (P) (0%) 234 (F)
I2C_Init 46 (P) 8 (P) (17%) 1 (P) (2%) 37 (P) (80%) 1 (P)
I2C_StructInit 12 (P) 5 (P) (42%) 2 (P) (17%) 5 (P) (42%) 1 (P)
I2C_Cmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_DMACmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_DMALastTransferCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_GenerateSTART 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_GenerateSTOP 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_AcknowledgeConfig 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_OwnAddress2Config 11 (P) 6 (P) (55%) 1 (P) (9%) 4 (P) (36%) 1 (P)
           
I2C_DualAddressCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_GeneralCallCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_ITConfig 15 (P) 12 (P) (80%) 1 (P) (7%) 2 (P) (13%) 1 (P)
I2C_SendData 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
I2C_ReceiveData 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
I2C_Send7bitAddress 15 (P) 10 (P) (67%) 1 (P) (7%) 4 (P) (27%) 1 (P)
I2C_ReadRegister 17 (P) 15 (P) (88%) 1 (P) (6%) 1 (P) (6%) 1 (P)
I2C_SoftwareResetCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_NACKPositionConfig 25 (P) 21 (P) (84%) 1 (P) (4%) 3 (P) (12%) 1 (P)
I2C_SMBusAlertConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
           
I2C_TransmitPEC 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_PECPositionConfig 17 (P) 14 (P) (82%) 1 (P) (6%) 2 (P) (12%) 1 (P)
I2C_CalculatePEC 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_GetPEC 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
I2C_ARPCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_StretchClockCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
I2C_FastModeDutyCycleConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 2 (P)
I2C_CheckEvent 126 (P) 119 (F) (94%) 1 (P) (1%) 6 (P) (5%) 3 (P)
I2C_GetLastEvent 18 (P) 14 (P) (78%) 1 (P) (6%) 3 (P) (17%) 2 (P)
I2C_GetFlagStatus 44 (P) 34 (P) (77%) 1 (P) (2%) 9 (P) (20%) 1 (P)
           
I2C_ClearFlag 34 (P) 31 (P) (91%) 1 (P) (3%) 2 (P) (6%) 1 (P)
I2C_GetITStatus 29 (P) 22 (P) (76%) 1 (P) (3%) 6 (P) (21%) 1 (P)
I2C_ClearITPendingBit 34 (P) 31 (P) (91%) 1 (P) (3%) 2 (P) (6%) 2 (P)
           
Total for stm32f10x_i2c.c 2843 (P) 2655 (F) (93%) 38 (P) (1%) 150 (P) (5%) 316 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_i2c.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
I2C_DeInit 43 (P) 3556 (F) 3544 (F) 2 (P) 9 (P)
I2C_Init 162 (P) 28 (P) 5 (P) 1 (P) 23 (P)
I2C_StructInit 12 (P) 100 (P) 42 (P) 17 (P) 42 (P)
I2C_Cmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_DMACmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_DMALastTransferCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_GenerateSTART 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_GenerateSTOP 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_AcknowledgeConfig 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_OwnAddress2Config 25 (P) 44 (P) 24 (P) 4 (P) 16 (P)
           
I2C_DualAddressCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_GeneralCallCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_ITConfig 53 (P) 28 (P) 23 (P) 2 (P) 4 (F)
I2C_SendData 20 (P) 40 (P) 30 (P) 5 (P) 5 (P)
I2C_ReceiveData 20 (P) 35 (P) 25 (P) 5 (P) 5 (P)
I2C_Send7bitAddress 47 (P) 32 (P) 21 (P) 2 (P) 9 (P)
I2C_ReadRegister 70 (P) 24 (P) 21 (P) 1 (P) 1 (F)
I2C_SoftwareResetCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_NACKPositionConfig 46 (P) 54 (P) 46 (P) 2 (P) 7 (P)
I2C_SMBusAlertConfig 46 (P) 26 (P) 20 (P) 2 (P) 4 (F)
           
I2C_TransmitPEC 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_PECPositionConfig 46 (P) 37 (P) 30 (P) 2 (P) 4 (F)
I2C_CalculatePEC 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_GetPEC 21 (P) 33 (P) 24 (P) 5 (P) 5 (P)
I2C_ARPCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_StretchClockCmd 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
I2C_FastModeDutyCycleConfig 46 (P) 26 (P) 20 (P) 2 (P) 4 (F)
I2C_CheckEvent 148 (P) 85 (P) 80 (P) 1 (P) 4 (F)
I2C_GetLastEvent 25 (P) 72 (P) 56 (P) 4 (P) 12 (P)
I2C_GetFlagStatus 157 (P) 28 (P) 22 (P) 1 (P) 6 (P)
           
I2C_ClearFlag 34 (P) 100 (P) 91 (P) 3 (P) 6 (P)
I2C_GetITStatus 115 (P) 25 (P) 19 (P) 1 (P) 5 (P)
I2C_ClearITPendingBit 34 (P) 100 (P) 91 (P) 3 (P) 6 (P)
           
Total for stm32f10x_i2c.c 2012 (P) 141 (P) 132 2 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_i2c.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
I2C_DeInit 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
I2C_Init 2 (P) 12 (F) 0 (P) 1 (P) Yes (P)
I2C_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
I2C_Cmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_DMACmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_DMALastTransferCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_GenerateSTART 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_GenerateSTOP 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_AcknowledgeConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_OwnAddress2Config 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
I2C_DualAddressCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_GeneralCallCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_ITConfig 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
I2C_SendData 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
I2C_ReceiveData 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
I2C_Send7bitAddress 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_ReadRegister 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
I2C_SoftwareResetCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_NACKPositionConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_SMBusAlertConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
I2C_TransmitPEC 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_PECPositionConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_CalculatePEC 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_GetPEC 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
I2C_ARPCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_StretchClockCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_FastModeDutyCycleConfig 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
I2C_CheckEvent 1 (P) 22 (F) 0 (P) 1 (P) Yes (P)
I2C_GetLastEvent 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
I2C_GetFlagStatus 2 (P) 24 (F) 0 (P) 1 (P) Yes (P)
           
I2C_ClearFlag 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
I2C_GetITStatus 1 (P) 17 (F) 0 (P) 1 (P) Yes (P)
I2C_ClearITPendingBit 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_i2c.c 42 (P) 166 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_i2c.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_i2c.c 1801 (F) 28092 (F) 27 (P) 749 (F) 776 (F) 29893 (F) 286970 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_i2c.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
I2C_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_DMALastTransferCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GenerateSTART 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GenerateSTOP 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_AcknowledgeConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_OwnAddress2Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
I2C_DualAddressCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GeneralCallCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_SendData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_ReceiveData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_Send7bitAddress 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_ReadRegister 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_SoftwareResetCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_NACKPositionConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_SMBusAlertConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
I2C_TransmitPEC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_PECPositionConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_CalculatePEC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GetPEC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_ARPCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_StretchClockCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_FastModeDutyCycleConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_CheckEvent 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GetLastEvent 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
I2C_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
I2C_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_i2c.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_i2c.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_i2c.c 526 (P) 524 (P) 2 (P) 44 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_i2c.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
I2C_DeInit 0 (P) 0 (P) 2 (P)
I2C_Init 0 (P) 0 (P) 2 (P)
I2C_StructInit 0 (P) 0 (P) 0 (P)
I2C_Cmd 0 (P) 0 (P) 1 (P)
I2C_DMACmd 0 (P) 0 (P) 1 (P)
I2C_DMALastTransferCmd 0 (P) 0 (P) 1 (P)
I2C_GenerateSTART 0 (P) 0 (P) 1 (P)
I2C_GenerateSTOP 0 (P) 0 (P) 1 (P)
I2C_AcknowledgeConfig 0 (P) 0 (P) 1 (P)
I2C_OwnAddress2Config 0 (P) 0 (P) 1 (P)
       
I2C_DualAddressCmd 0 (P) 0 (P) 1 (P)
I2C_GeneralCallCmd 0 (P) 0 (P) 1 (P)
I2C_ITConfig 0 (P) 0 (P) 1 (P)
I2C_SendData 0 (P) 0 (P) 1 (P)
I2C_ReceiveData 0 (P) 0 (P) 1 (P)
I2C_Send7bitAddress 0 (P) 0 (P) 1 (P)
I2C_ReadRegister 0 (P) 0 (P) 1 (P)
I2C_SoftwareResetCmd 0 (P) 0 (P) 1 (P)
I2C_NACKPositionConfig 0 (P) 0 (P) 1 (P)
I2C_SMBusAlertConfig 0 (P) 0 (P) 1 (P)
       
I2C_TransmitPEC 0 (P) 0 (P) 1 (P)
I2C_PECPositionConfig 0 (P) 0 (P) 1 (P)
I2C_CalculatePEC 0 (P) 0 (P) 1 (P)
I2C_GetPEC 0 (P) 0 (P) 1 (P)
I2C_ARPCmd 0 (P) 0 (P) 1 (P)
I2C_StretchClockCmd 0 (P) 0 (P) 1 (P)
I2C_FastModeDutyCycleConfig 0 (P) 0 (P) 1 (P)
I2C_CheckEvent 0 (P) 0 (P) 1 (P)
I2C_GetLastEvent 0 (P) 0 (P) 1 (P)
I2C_GetFlagStatus 0 (P) 0 (P) 1 (P)
       
I2C_ClearFlag 0 (P) 0 (P) 1 (P)
I2C_GetITStatus 0 (P) 0 (P) 1 (P)
I2C_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_i2c.c 2 (P) 1 (P) 36 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_gpio.c


Reformatted Code Information for File (stm32f10x_gpio.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_gpio.c 10844 (F) 2129 (F) (20%) 2269 (F) (21%) 6446 (F) (59%) 35 (P) 12012 (F) 0.90 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_gpio.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
GPIO_DeInit 191 (P) 28 (P) 6.82 (F) 1 (P) 1 (P)
GPIO_AFIODeInit 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
GPIO_Init 243 (F) 48 (F) 5.06 (P) 1 (P) 1 (P)
GPIO_StructInit 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
GPIO_ReadInputDataBit 156 (P) 27 (P) 5.78 (P) 1 (P) 1 (P)
GPIO_ReadInputData 63 (P) 8 (P) 7.87 (F) 1 (P) 1 (P)
GPIO_ReadOutputDataBit 156 (P) 27 (P) 5.78 (P) 1 (P) 1 (P)
GPIO_ReadOutputData 63 (P) 8 (P) 7.87 (F) 1 (P) 1 (P)
GPIO_SetBits 74 (P) 10 (P) 7.40 (F) 1 (P) 1 (P)
GPIO_ResetBits 74 (P) 10 (P) 7.40 (F) 1 (P) 1 (P)
           
GPIO_WriteBit 166 (P) 29 (P) 5.72 (P) 1 (P) 1 (P)
GPIO_Write 62 (P) 8 (P) 7.75 (F) 1 (P) 1 (P)
GPIO_PinLockConfig 79 (P) 10 (P) 7.90 (F) 1 (P) 1 (P)
GPIO_EventOutputConfig 127 (P) 22 (P) 5.77 (P) 1 (P) 1 (P)
GPIO_EventOutputCmd 25 (P) 3 (P) 8.33 (F) 1 (P) 1 (P)
GPIO_PinRemapConfig 329 (F) 61 (F) 5.39 (P) 1 (P) 1 (P)
GPIO_EXTILineConfig 137 (P) 24 (P) 5.71 (P) 1 (P) 1 (P)
GPIO_ETH_MediaInterfaceConfig 27 (P) 3 (P) 9.00 (F) 1 (P) 1 (P)
           
Total for stm32f10x_gpio.c 2269 (P) 392 (P) 5.79 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_gpio.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
GPIO_DeInit 1213 (F) 1212 (F) (100%) 1 (P) (0%) 0 (F) (0%) 203 (F)
GPIO_AFIODeInit 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
GPIO_Init 26 (P) 8 (P) (31%) 1 (P) (4%) 17 (P) (65%) 1 (P)
GPIO_StructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
GPIO_ReadInputDataBit 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
GPIO_ReadInputData 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
GPIO_ReadOutputDataBit 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
GPIO_ReadOutputData 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
GPIO_SetBits 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
GPIO_ResetBits 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
           
GPIO_WriteBit 12 (P) 11 (P) (92%) 1 (P) (8%) 0 (F) (0%) 1 (P)
GPIO_Write 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
GPIO_PinLockConfig 13 (P) 7 (P) (54%) 1 (P) (8%) 5 (P) (38%) 1 (P)
GPIO_EventOutputConfig 11 (P) 9 (P) (82%) 1 (P) (9%) 1 (P) (9%) 1 (P)
GPIO_EventOutputCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
GPIO_PinRemapConfig 59 (P) 58 (F) (98%) 1 (P) (2%) 0 (F) (0%) 1 (P)
GPIO_EXTILineConfig 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 1 (P)
GPIO_ETH_MediaInterfaceConfig 10 (P) 9 (P) (90%) 0 (P) (0%) 1 (P) (10%) 2 (P)
           
Total for stm32f10x_gpio.c 2119 (P) 2048 (F) (97%) 20 (P) (1%) 51 (P) (2%) 266 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_gpio.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
GPIO_DeInit 191 (P) 635 (F) 635 (P) 1 (P) 0 (F)
GPIO_AFIODeInit 8 (P) 75 (P) 75 (P) 0 (F) 0 (F)
GPIO_Init 243 (F) 11 (P) 3 (P) 0 (F) 7 (P)
GPIO_StructInit 6 (P) 117 (P) 100 (P) 17 (P) 0 (F)
GPIO_ReadInputDataBit 156 (P) 5 (F) 4 (P) 1 (P) 0 (F)
GPIO_ReadInputData 63 (P) 10 (P) 8 (P) 2 (P) 0 (F)
GPIO_ReadOutputDataBit 156 (P) 5 (F) 4 (P) 1 (P) 0 (F)
GPIO_ReadOutputData 63 (P) 10 (P) 8 (P) 2 (P) 0 (F)
GPIO_SetBits 74 (P) 11 (P) 9 (P) 1 (P) 0 (F)
GPIO_ResetBits 74 (P) 11 (P) 9 (P) 1 (P) 0 (F)
           
GPIO_WriteBit 166 (P) 7 (F) 7 (P) 1 (P) 0 (F)
GPIO_Write 62 (P) 11 (P) 10 (P) 2 (P) 0 (F)
GPIO_PinLockConfig 79 (P) 16 (P) 9 (P) 1 (P) 6 (P)
GPIO_EventOutputConfig 127 (P) 9 (F) 7 (P) 1 (P) 1 (F)
GPIO_EventOutputCmd 25 (P) 28 (P) 24 (P) 4 (P) 0 (F)
GPIO_PinRemapConfig 329 (F) 18 (P) 18 (P) 0 (F) 0 (F)
GPIO_EXTILineConfig 137 (P) 7 (F) 6 (P) 1 (P) 0 (F)
GPIO_ETH_MediaInterfaceConfig 27 (P) 37 (P) 33 (P) 0 (F) 4 (F)
           
Total for stm32f10x_gpio.c 2269 (P) 93 (P) 90 1 (P) 2 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_gpio.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
GPIO_DeInit 6 (F) 14 (F) 0 (P) 1 (P) Yes (P)
GPIO_AFIODeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
GPIO_Init 9 (F) 28 (F) 0 (P) 1 (P) Yes (P)
GPIO_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
GPIO_ReadInputDataBit 1 (P) 23 (F) 0 (P) 1 (P) Yes (P)
GPIO_ReadInputData 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
GPIO_ReadOutputDataBit 1 (P) 23 (F) 0 (P) 1 (P) Yes (P)
GPIO_ReadOutputData 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
GPIO_SetBits 0 (P) 8 (P) 0 (P) 1 (P) Yes (P)
GPIO_ResetBits 0 (P) 8 (P) 0 (P) 1 (P) Yes (P)
           
GPIO_WriteBit 1 (P) 24 (F) 0 (P) 1 (P) Yes (P)
GPIO_Write 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
GPIO_PinLockConfig 0 (P) 8 (P) 0 (P) 1 (P) Yes (P)
GPIO_EventOutputConfig 0 (P) 20 (F) 0 (P) 1 (P) Yes (P)
GPIO_EventOutputCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
GPIO_PinRemapConfig 4 (P) 50 (F) 0 (P) 1 (P) Yes (P)
GPIO_EXTILineConfig 0 (P) 22 (F) 0 (P) 1 (P) Yes (P)
GPIO_ETH_MediaInterfaceConfig 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_gpio.c 38 (P) 254 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_gpio.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_gpio.c 2053 (F) 27977 (F) 27 (P) 625 (F) 652 (F) 30030 (F) 280742 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_gpio.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
GPIO_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_AFIODeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_Init 2 (P) 1 (P) 5 (P) 2 (P) Yes (P)
GPIO_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ReadInputDataBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ReadInputData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ReadOutputDataBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ReadOutputData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_SetBits 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ResetBits 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
GPIO_WriteBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_Write 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_PinLockConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_EventOutputConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_EventOutputCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_PinRemapConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_EXTILineConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
GPIO_ETH_MediaInterfaceConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_gpio.c 4 (P) 1 (P) 8 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_gpio.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_gpio.c 523 (P) 513 (P) 10 (P) 46 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_gpio.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
GPIO_DeInit 0 (P) 0 (P) 2 (P)
GPIO_AFIODeInit 0 (P) 0 (P) 1 (P)
GPIO_Init 0 (P) 0 (P) 1 (P)
GPIO_StructInit 0 (P) 0 (P) 0 (P)
GPIO_ReadInputDataBit 0 (P) 0 (P) 1 (P)
GPIO_ReadInputData 0 (P) 0 (P) 1 (P)
GPIO_ReadOutputDataBit 0 (P) 0 (P) 1 (P)
GPIO_ReadOutputData 0 (P) 0 (P) 1 (P)
GPIO_SetBits 0 (P) 0 (P) 1 (P)
GPIO_ResetBits 0 (P) 0 (P) 1 (P)
       
GPIO_WriteBit 0 (P) 0 (P) 1 (P)
GPIO_Write 0 (P) 0 (P) 1 (P)
GPIO_PinLockConfig 0 (P) 0 (P) 1 (P)
GPIO_EventOutputConfig 0 (P) 0 (P) 1 (P)
GPIO_EventOutputCmd 0 (P) 0 (P) 1 (P)
GPIO_PinRemapConfig 0 (P) 0 (P) 1 (P)
GPIO_EXTILineConfig 0 (P) 0 (P) 1 (P)
GPIO_ETH_MediaInterfaceConfig 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_gpio.c 2 (P) 1 (P) 20 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_fsmc.c


Reformatted Code Information for File (stm32f10x_fsmc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_fsmc.c 10615 (F) 2438 (F) (23%) 1745 (P) (16%) 6432 (F) (61%) 36 (P) 12576 (F) 0.85 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_fsmc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
FSMC_NORSRAMDeInit 51 (P) 8 (P) 6.37 (F) 1 (P) 1 (P)
FSMC_NANDDeInit 57 (P) 6 (P) 9.50 (F) 1 (P) 1 (P)
FSMC_PCCARDDeInit 22 (P) 1 (P) 22.00 (F) 1 (P) 1 (P)
FSMC_NORSRAMInit 329 (F) 47 (F) 7.00 (F) 1 (P) 1 (P)
FSMC_NANDInit 159 (P) 18 (P) 8.83 (F) 1 (P) 1 (P)
FSMC_PCCARDInit 80 (P) 3 (P) 26.67 (F) 1 (P) 1 (P)
FSMC_NORSRAMStructInit 44 (P) 1 (P) 44.00 (F) 1 (P) 1 (P)
FSMC_NANDStructInit 22 (P) 1 (P) 22.00 (F) 1 (P) 1 (P)
FSMC_PCCARDStructInit 18 (P) 1 (P) 18.00 (F) 1 (P) 1 (P)
FSMC_NORSRAMCmd 55 (P) 10 (P) 5.50 (P) 1 (P) 1 (P)
           
FSMC_NANDCmd 75 (P) 14 (P) 5.36 (P) 1 (P) 1 (P)
FSMC_PCCARDCmd 32 (P) 6 (P) 5.33 (P) 1 (P) 1 (P)
FSMC_NANDECCCmd 75 (P) 14 (P) 5.36 (P) 1 (P) 1 (P)
FSMC_GetECC 21 (P) 4 (P) 5.25 (P) 1 (P) 1 (P)
FSMC_ITConfig 116 (P) 23 (P) 5.04 (P) 1 (P) 1 (P)
FSMC_GetFlagStatus 88 (P) 17 (P) 5.18 (P) 1 (P) 1 (P)
FSMC_ClearFlag 64 (P) 12 (P) 5.33 (P) 1 (P) 1 (P)
FSMC_GetITStatus 90 (P) 18 (P) 5.00 (P) 1 (P) 1 (P)
FSMC_ClearITPendingBit 64 (P) 12 (P) 5.33 (P) 1 (P) 1 (P)
           
Total for stm32f10x_fsmc.c 1745 (P) 280 (P) 6.23 (F) 1 (P) 6 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_fsmc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
FSMC_NORSRAMDeInit 1511 (F) 1508 (F) (100%) 1 (P) (0%) 2 (P) (0%) 264 (F)
FSMC_NANDDeInit 12 (P) 8 (P) (67%) 1 (P) (8%) 3 (P) (25%) 1 (P)
FSMC_PCCARDDeInit 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
FSMC_NORSRAMInit 12 (P) 8 (P) (67%) 1 (P) (8%) 3 (P) (25%) 1 (P)
FSMC_NANDInit 14 (P) 8 (P) (57%) 1 (P) (7%) 5 (P) (36%) 1 (P)
FSMC_PCCARDInit 13 (P) 8 (P) (62%) 1 (P) (8%) 4 (P) (31%) 1 (P)
FSMC_NORSRAMStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
FSMC_NANDStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
FSMC_PCCARDStructInit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
FSMC_NORSRAMCmd 13 (P) 11 (P) (85%) 0 (P) (0%) 2 (P) (15%) 1 (P)
           
FSMC_NANDCmd 11 (P) 9 (P) (82%) 0 (P) (0%) 2 (P) (18%) 1 (P)
FSMC_PCCARDCmd 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 1 (P)
FSMC_NANDECCCmd 12 (P) 10 (P) (83%) 0 (P) (0%) 2 (P) (17%) 1 (P)
FSMC_GetECC 11 (P) 8 (P) (73%) 0 (P) (0%) 3 (P) (27%) 1 (P)
FSMC_ITConfig 22 (P) 16 (P) (73%) 0 (P) (0%) 6 (P) (27%) 1 (P)
FSMC_GetFlagStatus 19 (P) 15 (P) (79%) 1 (P) (5%) 3 (P) (16%) 1 (P)
FSMC_ClearFlag 16 (P) 14 (P) (88%) 1 (P) (6%) 1 (P) (6%) 1 (P)
FSMC_GetITStatus 16 (P) 14 (P) (88%) 1 (P) (6%) 1 (P) (6%) 1 (P)
FSMC_ClearITPendingBit 16 (P) 14 (P) (88%) 1 (P) (6%) 1 (P) (6%) 2 (P)
           
Total for stm32f10x_fsmc.c 2428 (P) 2344 (F) (97%) 17 (P) (1%) 67 (P) (3%) 328 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_fsmc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
FSMC_NORSRAMDeInit 51 (P) 2963 (F) 2957 (F) 2 (P) 4 (F)
FSMC_NANDDeInit 57 (P) 21 (P) 14 (P) 2 (P) 5 (P)
FSMC_PCCARDDeInit 22 (P) 27 (P) 23 (P) 5 (P) 0 (F)
FSMC_NORSRAMInit 329 (F) 4 (F) 2 (P) 0 (F) 1 (F)
FSMC_NANDInit 159 (P) 9 (F) 5 (P) 1 (P) 3 (F)
FSMC_PCCARDInit 80 (P) 16 (P) 10 (P) 1 (P) 5 (P)
FSMC_NORSRAMStructInit 44 (P) 16 (P) 14 (P) 2 (P) 0 (F)
FSMC_NANDStructInit 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
FSMC_PCCARDStructInit 18 (P) 39 (P) 33 (P) 6 (P) 0 (F)
FSMC_NORSRAMCmd 55 (P) 24 (P) 20 (P) 0 (F) 4 (F)
           
FSMC_NANDCmd 75 (P) 15 (P) 12 (P) 0 (F) 3 (F)
FSMC_PCCARDCmd 32 (P) 25 (P) 19 (P) 0 (F) 6 (P)
FSMC_NANDECCCmd 75 (P) 16 (P) 13 (P) 0 (F) 3 (F)
FSMC_GetECC 21 (P) 52 (P) 38 (P) 0 (F) 14 (P)
FSMC_ITConfig 116 (P) 19 (P) 14 (P) 0 (F) 5 (P)
FSMC_GetFlagStatus 88 (P) 22 (P) 17 (P) 1 (P) 3 (F)
FSMC_ClearFlag 64 (P) 25 (P) 22 (P) 2 (P) 2 (F)
FSMC_GetITStatus 90 (P) 18 (P) 16 (P) 1 (P) 1 (F)
FSMC_ClearITPendingBit 64 (P) 25 (P) 22 (P) 2 (P) 2 (F)
           
Total for stm32f10x_fsmc.c 1745 (P) 139 (P) 134 1 (P) 4 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_fsmc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
FSMC_NORSRAMDeInit 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
FSMC_NANDDeInit 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
FSMC_PCCARDDeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FSMC_NORSRAMInit 1 (P) 27 (F) 0 (P) 1 (P) Yes (P)
FSMC_NANDInit 1 (P) 11 (F) 0 (P) 1 (P) Yes (P)
FSMC_PCCARDInit 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FSMC_NORSRAMStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FSMC_NANDStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FSMC_PCCARDStructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FSMC_NORSRAMCmd 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
           
FSMC_NANDCmd 3 (P) 6 (P) 0 (P) 1 (P) Yes (P)
FSMC_PCCARDCmd 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
FSMC_NANDECCCmd 3 (P) 6 (P) 0 (P) 1 (P) Yes (P)
FSMC_GetECC 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FSMC_ITConfig 5 (P) 10 (P) 0 (P) 1 (P) Yes (P)
FSMC_GetFlagStatus 3 (P) 9 (P) 0 (P) 1 (P) Yes (P)
FSMC_ClearFlag 2 (P) 6 (P) 0 (P) 1 (P) Yes (P)
FSMC_GetITStatus 3 (P) 9 (P) 0 (P) 1 (P) Yes (P)
FSMC_ClearITPendingBit 2 (P) 6 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_fsmc.c 44 (P) 113 (P) 0 (P) 1 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_fsmc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_fsmc.c 1963 (F) 27940 (F) 25 (P) 613 (F) 638 (F) 29903 (F) 278618 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_fsmc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
FSMC_NORSRAMDeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NANDDeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_PCCARDDeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NORSRAMInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NANDInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_PCCARDInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NORSRAMStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NANDStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_PCCARDStructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NORSRAMCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
FSMC_NANDCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_PCCARDCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_NANDECCCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_GetECC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FSMC_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_fsmc.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_fsmc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_fsmc.c 590 (P) 588 (P) 2 (P) 156 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_fsmc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
FSMC_NORSRAMDeInit 0 (P) 0 (P) 1 (P)
FSMC_NANDDeInit 0 (P) 0 (P) 1 (P)
FSMC_PCCARDDeInit 0 (P) 0 (P) 0 (P)
FSMC_NORSRAMInit 0 (P) 0 (P) 1 (P)
FSMC_NANDInit 0 (P) 0 (P) 1 (P)
FSMC_PCCARDInit 0 (P) 0 (P) 1 (P)
FSMC_NORSRAMStructInit 0 (P) 0 (P) 0 (P)
FSMC_NANDStructInit 0 (P) 0 (P) 0 (P)
FSMC_PCCARDStructInit 0 (P) 0 (P) 0 (P)
FSMC_NORSRAMCmd 0 (P) 0 (P) 1 (P)
       
FSMC_NANDCmd 0 (P) 0 (P) 1 (P)
FSMC_PCCARDCmd 0 (P) 0 (P) 1 (P)
FSMC_NANDECCCmd 0 (P) 0 (P) 1 (P)
FSMC_GetECC 0 (P) 0 (P) 0 (P)
FSMC_ITConfig 0 (P) 0 (P) 1 (P)
FSMC_GetFlagStatus 0 (P) 0 (P) 1 (P)
FSMC_ClearFlag 0 (P) 0 (P) 1 (P)
FSMC_GetITStatus 0 (P) 0 (P) 1 (P)
FSMC_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_fsmc.c 2 (P) 1 (P) 16 (P)
       

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_flash.c


Reformatted Code Information for File (stm32f10x_flash.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_flash.c 10715 (F) 2361 (F) (22%) 2098 (F) (20%) 6256 (F) (58%) 51 (F) 12362 (F) 0.87 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_flash.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
FLASH_SetLatency 33 (P) 4 (P) 8.25 (F) 1 (P) 1 (P)
FLASH_HalfCycleAccessCmd 26 (P) 3 (P) 8.67 (F) 1 (P) 1 (P)
FLASH_PrefetchBufferCmd 26 (P) 3 (P) 8.67 (F) 1 (P) 1 (P)
FLASH_Unlock 26 (P) 1 (P) 26.00 (F) 1 (P) 1 (P)
FLASH_UnlockBank1 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
FLASH_UnlockBank2 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
FLASH_Lock 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
FLASH_LockBank1 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
FLASH_LockBank2 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
FLASH_ErasePage 99 (P) 10 (P) 9.90 (F) 1 (P) 1 (P)
           
FLASH_EraseAllPages 64 (P) 5 (P) 12.80 (F) 1 (P) 1 (P)
FLASH_EraseAllBank1Pages 36 (P) 3 (P) 12.00 (F) 1 (P) 1 (P)
FLASH_EraseAllBank2Pages 36 (P) 3 (P) 12.00 (F) 1 (P) 1 (P)
FLASH_EraseOptionBytes 101 (P) 12 (P) 8.42 (F) 1 (P) 1 (P)
FLASH_ProgramWord 205 (F) 25 (P) 8.20 (F) 1 (P) 1 (P)
FLASH_ProgramHalfWord 75 (P) 10 (P) 7.50 (F) 1 (P) 1 (P)
FLASH_ProgramOptionByteData 60 (P) 7 (P) 8.57 (F) 1 (P) 1 (P)
FLASH_EnableWriteProtection 127 (P) 19 (P) 6.68 (F) 1 (P) 1 (P)
FLASH_ReadOutProtection 118 (P) 15 (P) 7.87 (F) 1 (P) 1 (P)
FLASH_UserOptionByteConfig 91 (P) 11 (P) 8.27 (F) 1 (P) 1 (P)
           
FLASH_BootConfig 80 (P) 10 (P) 8.00 (F) 1 (P) 1 (P)
FLASH_GetUserOptionByte 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
FLASH_GetWriteProtectionOptionByte 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
FLASH_GetReadOutProtectionStatus 21 (P) 4 (P) 5.25 (P) 1 (P) 1 (P)
FLASH_GetPrefetchBufferStatus 21 (P) 4 (P) 5.25 (P) 1 (P) 1 (P)
FLASH_ITConfig 73 (P) 14 (P) 5.21 (P) 1 (P) 1 (P)
FLASH_GetFlagStatus 140 (P) 29 (P) 4.83 (P) 1 (P) 1 (P)
FLASH_ClearFlag 33 (P) 6 (P) 5.50 (P) 1 (P) 1 (P)
FLASH_GetStatus 54 (P) 10 (P) 5.40 (P) 1 (P) 1 (P)
FLASH_GetBank1Status 54 (P) 10 (P) 5.40 (P) 1 (P) 1 (P)
           
FLASH_GetBank2Status 58 (P) 10 (P) 5.80 (P) 1 (P) 1 (P)
FLASH_WaitForLastOperation 27 (P) 8 (P) 3.37 (P) 1 (P) 1 (P)
FLASH_WaitForLastBank1Operation 28 (P) 8 (P) 3.50 (P) 1 (P) 1 (P)
FLASH_WaitForLastBank2Operation 29 (P) 8 (P) 3.62 (P) 1 (P) 1 (P)
           
Total for stm32f10x_flash.c 2098 (P) 323 (P) 6.50 (F) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_flash.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
FLASH_SetLatency 1175 (F) 1171 (F) (100%) 1 (P) (0%) 3 (P) (0%) 164 (F)
FLASH_HalfCycleAccessCmd 11 (P) 9 (P) (82%) 1 (P) (9%) 1 (P) (9%) 1 (P)
FLASH_PrefetchBufferCmd 11 (P) 9 (P) (82%) 1 (P) (9%) 1 (P) (9%) 1 (P)
FLASH_Unlock 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
FLASH_UnlockBank1 10 (P) 9 (P) (90%) 1 (P) (10%) 0 (F) (0%) 1 (P)
FLASH_UnlockBank2 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
FLASH_Lock 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
FLASH_LockBank1 10 (P) 9 (P) (90%) 1 (P) (10%) 0 (F) (0%) 1 (P)
FLASH_LockBank2 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
FLASH_ErasePage 18 (P) 7 (P) (39%) 1 (P) (6%) 10 (P) (56%) 1 (P)
           
FLASH_EraseAllPages 16 (P) 7 (P) (44%) 1 (P) (6%) 8 (P) (50%) 1 (P)
FLASH_EraseAllBank1Pages 15 (P) 10 (P) (67%) 1 (P) (7%) 4 (P) (27%) 1 (P)
FLASH_EraseAllBank2Pages 13 (P) 7 (P) (54%) 1 (P) (8%) 5 (P) (38%) 1 (P)
FLASH_EraseOptionBytes 20 (P) 8 (P) (40%) 1 (P) (5%) 11 (P) (55%) 1 (P)
FLASH_ProgramWord 41 (P) 8 (P) (20%) 1 (P) (2%) 32 (P) (78%) 1 (P)
FLASH_ProgramHalfWord 18 (P) 8 (P) (44%) 1 (P) (6%) 9 (P) (50%) 1 (P)
FLASH_ProgramOptionByteData 15 (P) 9 (P) (60%) 1 (P) (7%) 5 (P) (33%) 1 (P)
FLASH_EnableWriteProtection 27 (P) 18 (P) (67%) 1 (P) (4%) 8 (P) (30%) 1 (P)
FLASH_ReadOutProtection 19 (P) 10 (P) (53%) 1 (P) (5%) 8 (P) (42%) 1 (P)
FLASH_UserOptionByteConfig 25 (P) 18 (P) (72%) 1 (P) (4%) 6 (P) (24%) 1 (P)
           
FLASH_BootConfig 25 (P) 18 (P) (72%) 0 (P) (0%) 7 (P) (28%) 1 (P)
FLASH_GetUserOptionByte 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
FLASH_GetWriteProtectionOptionByte 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
FLASH_GetReadOutProtectionStatus 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
FLASH_GetPrefetchBufferStatus 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 1 (P)
FLASH_ITConfig 20 (P) 14 (P) (70%) 1 (P) (5%) 5 (P) (25%) 1 (P)
FLASH_GetFlagStatus 19 (P) 16 (P) (84%) 1 (P) (5%) 2 (P) (11%) 1 (P)
FLASH_ClearFlag 16 (P) 12 (P) (75%) 1 (P) (6%) 3 (P) (19%) 1 (P)
FLASH_GetStatus 9 (F) 8 (P) (89%) 0 (P) (0%) 1 (P) (11%) 1 (P)
FLASH_GetBank1Status 9 (F) 8 (P) (89%) 0 (P) (0%) 1 (P) (11%) 1 (P)
           
FLASH_GetBank2Status 9 (F) 7 (P) (78%) 0 (P) (0%) 2 (P) (22%) 1 (P)
FLASH_WaitForLastOperation 15 (P) 12 (P) (80%) 1 (P) (7%) 2 (P) (13%) 1 (P)
FLASH_WaitForLastBank1Operation 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
FLASH_WaitForLastBank2Operation 11 (P) 7 (P) (64%) 1 (P) (9%) 3 (P) (27%) 1 (P)
           
Total for stm32f10x_flash.c 2351 (P) 2146 (P) (91%) 32 (P) (1%) 173 (P) (7%) 242 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_flash.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
FLASH_SetLatency 33 (P) 3561 (F) 3548 (F) 3 (P) 9 (P)
FLASH_HalfCycleAccessCmd 26 (P) 42 (P) 35 (P) 4 (P) 4 (F)
FLASH_PrefetchBufferCmd 26 (P) 42 (P) 35 (P) 4 (P) 4 (F)
FLASH_Unlock 26 (P) 46 (P) 35 (P) 4 (P) 8 (P)
FLASH_UnlockBank1 14 (P) 71 (P) 64 (P) 7 (P) 0 (F)
FLASH_UnlockBank2 14 (P) 57 (P) 43 (P) 7 (P) 7 (P)
FLASH_Lock 14 (P) 86 (P) 64 (P) 7 (P) 14 (P)
FLASH_LockBank1 8 (P) 125 (P) 113 (P) 13 (P) 0 (F)
FLASH_LockBank2 8 (P) 100 (P) 75 (P) 13 (P) 13 (P)
FLASH_ErasePage 99 (P) 18 (P) 7 (P) 1 (P) 10 (P)
           
FLASH_EraseAllPages 64 (P) 25 (P) 11 (P) 2 (P) 13 (P)
FLASH_EraseAllBank1Pages 36 (P) 42 (P) 28 (P) 3 (P) 11 (P)
FLASH_EraseAllBank2Pages 36 (P) 36 (P) 19 (P) 3 (P) 14 (P)
FLASH_EraseOptionBytes 101 (P) 20 (P) 8 (P) 1 (P) 11 (P)
FLASH_ProgramWord 205 (F) 20 (P) 4 (P) 0 (F) 16 (P)
FLASH_ProgramHalfWord 75 (P) 24 (P) 11 (P) 1 (P) 12 (P)
FLASH_ProgramOptionByteData 60 (P) 25 (P) 15 (P) 2 (P) 8 (P)
FLASH_EnableWriteProtection 127 (P) 21 (P) 14 (P) 1 (P) 6 (P)
FLASH_ReadOutProtection 118 (P) 16 (P) 8 (P) 1 (P) 7 (P)
FLASH_UserOptionByteConfig 91 (P) 27 (P) 20 (P) 1 (P) 7 (P)
           
FLASH_BootConfig 80 (P) 31 (P) 23 (P) 0 (F) 9 (P)
FLASH_GetUserOptionByte 8 (P) 100 (P) 88 (P) 13 (P) 0 (F)
FLASH_GetWriteProtectionOptionByte 8 (P) 88 (P) 75 (P) 13 (P) 0 (F)
FLASH_GetReadOutProtectionStatus 21 (P) 29 (P) 29 (P) 0 (F) 0 (F)
FLASH_GetPrefetchBufferStatus 21 (P) 33 (P) 29 (P) 0 (F) 5 (P)
FLASH_ITConfig 73 (P) 27 (P) 19 (P) 1 (P) 7 (P)
FLASH_GetFlagStatus 140 (P) 14 (P) 11 (P) 1 (P) 1 (F)
FLASH_ClearFlag 33 (P) 48 (P) 36 (P) 3 (P) 9 (P)
FLASH_GetStatus 54 (P) 17 (P) 15 (P) 0 (F) 2 (F)
FLASH_GetBank1Status 54 (P) 17 (P) 15 (P) 0 (F) 2 (F)
           
FLASH_GetBank2Status 58 (P) 16 (P) 12 (P) 0 (F) 3 (F)
FLASH_WaitForLastOperation 27 (P) 56 (P) 44 (P) 4 (P) 7 (P)
FLASH_WaitForLastBank1Operation 28 (P) 39 (P) 29 (P) 4 (P) 7 (P)
FLASH_WaitForLastBank2Operation 29 (P) 38 (P) 24 (P) 3 (P) 10 (P)
           
Total for stm32f10x_flash.c 2098 (P) 112 (P) 102 2 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_flash.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
FLASH_SetLatency 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
FLASH_HalfCycleAccessCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_PrefetchBufferCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_Unlock 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_UnlockBank1 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_UnlockBank2 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_Lock 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_LockBank1 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_LockBank2 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_ErasePage 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
           
FLASH_EraseAllPages 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
FLASH_EraseAllBank1Pages 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_EraseAllBank2Pages 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_EraseOptionBytes 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
FLASH_ProgramWord 6 (F) 10 (P) 0 (P) 1 (P) Yes (P)
FLASH_ProgramHalfWord 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
FLASH_ProgramOptionByteData 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
FLASH_EnableWriteProtection 0 (P) 10 (P) 0 (P) 1 (P) Yes (P)
FLASH_ReadOutProtection 2 (P) 7 (P) 0 (P) 1 (P) Yes (P)
FLASH_UserOptionByteConfig 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
           
FLASH_BootConfig 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetUserOptionByte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetWriteProtectionOptionByte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetReadOutProtectionStatus 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetPrefetchBufferStatus 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
FLASH_ITConfig 3 (P) 6 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetFlagStatus 5 (P) 18 (F) 0 (P) 1 (P) Yes (P)
FLASH_ClearFlag 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetStatus 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
FLASH_GetBank1Status 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
FLASH_GetBank2Status 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
FLASH_WaitForLastOperation 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
FLASH_WaitForLastBank1Operation 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
FLASH_WaitForLastBank2Operation 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_flash.c 51 (P) 118 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_flash.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_flash.c 1723 (F) 26377 (F) 26 (P) 540 (F) 566 (F) 28100 (F) 256964 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_flash.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
FLASH_SetLatency 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_HalfCycleAccessCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_PrefetchBufferCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_Unlock 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_UnlockBank1 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_UnlockBank2 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_Lock 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_LockBank1 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_LockBank2 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ErasePage 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
FLASH_EraseAllPages 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_EraseAllBank1Pages 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_EraseAllBank2Pages 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_EraseOptionBytes 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ProgramWord 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ProgramHalfWord 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ProgramOptionByteData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_EnableWriteProtection 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ReadOutProtection 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_UserOptionByteConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
FLASH_BootConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetUserOptionByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetWriteProtectionOptionByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetReadOutProtectionStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetPrefetchBufferStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_GetBank1Status 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
FLASH_GetBank2Status 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
FLASH_WaitForLastOperation 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
FLASH_WaitForLastBank1Operation 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
FLASH_WaitForLastBank2Operation 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
           
Total for stm32f10x_flash.c 5 (P) 1 (P) 7 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_flash.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_flash.c 495 (P) 493 (P) 2 (P) 40 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_flash.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
FLASH_SetLatency 0 (P) 0 (P) 1 (P)
FLASH_HalfCycleAccessCmd 0 (P) 0 (P) 1 (P)
FLASH_PrefetchBufferCmd 0 (P) 0 (P) 1 (P)
FLASH_Unlock 0 (P) 0 (P) 0 (P)
FLASH_UnlockBank1 0 (P) 0 (P) 0 (P)
FLASH_UnlockBank2 0 (P) 0 (P) 0 (P)
FLASH_Lock 0 (P) 0 (P) 0 (P)
FLASH_LockBank1 0 (P) 0 (P) 0 (P)
FLASH_LockBank2 0 (P) 0 (P) 0 (P)
FLASH_ErasePage 0 (P) 0 (P) 3 (P)
       
FLASH_EraseAllPages 0 (P) 0 (P) 2 (P)
FLASH_EraseAllBank1Pages 0 (P) 0 (P) 1 (P)
FLASH_EraseAllBank2Pages 0 (P) 0 (P) 1 (P)
FLASH_EraseOptionBytes 0 (P) 0 (P) 2 (P)
FLASH_ProgramWord 0 (P) 0 (P) 4 (P)
FLASH_ProgramHalfWord 0 (P) 0 (P) 4 (P)
FLASH_ProgramOptionByteData 0 (P) 0 (P) 2 (P)
FLASH_EnableWriteProtection 0 (P) 0 (P) 2 (P)
FLASH_ReadOutProtection 0 (P) 0 (P) 2 (P)
FLASH_UserOptionByteConfig 0 (P) 0 (P) 2 (P)
       
FLASH_BootConfig 0 (P) 0 (P) 2 (P)
FLASH_GetUserOptionByte 0 (P) 0 (P) 0 (P)
FLASH_GetWriteProtectionOptionByte 0 (P) 0 (P) 0 (P)
FLASH_GetReadOutProtectionStatus 0 (P) 1 (P) 0 (P)
FLASH_GetPrefetchBufferStatus 0 (P) 0 (P) 0 (P)
FLASH_ITConfig 0 (P) 0 (P) 1 (P)
FLASH_GetFlagStatus 0 (P) 0 (P) 1 (P)
FLASH_ClearFlag 0 (P) 0 (P) 1 (P)
FLASH_GetStatus 0 (P) 0 (P) 0 (P)
FLASH_GetBank1Status 0 (P) 2 (P) 0 (P)
       
FLASH_GetBank2Status 0 (P) 1 (P) 0 (P)
FLASH_WaitForLastOperation 0 (P) 8 (F) 1 (P)
FLASH_WaitForLastBank1Operation 0 (P) 5 (P) 1 (P)
FLASH_WaitForLastBank2Operation 0 (P) 5 (P) 1 (P)
       
Total for stm32f10x_flash.c 2 (P) 23 (P) 38 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_exti.c


Reformatted Code Information for File (stm32f10x_exti.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_exti.c 8414 (F) 1756 (F) (21%) 743 (P) (9%) 5915 (F) (70%) 25 (P) 10704 (F) 0.79 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_exti.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
EXTI_DeInit 27 (P) 1 (P) 27.00 (F) 1 (P) 1 (P)
EXTI_Init 113 (P) 16 (P) 7.06 (F) 1 (P) 1 (P)
EXTI_StructInit 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
EXTI_GenerateSWInterrupt 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
EXTI_GetFlagStatus 123 (P) 24 (P) 5.12 (P) 1 (P) 1 (P)
EXTI_ClearFlag 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
EXTI_GetITStatus 133 (P) 26 (P) 5.12 (P) 1 (P) 1 (P)
EXTI_ClearITPendingBit 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
           
Total for stm32f10x_exti.c 743 (P) 141 (P) 5.27 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_exti.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
EXTI_DeInit 995 (F) 995 (F) (100%) 0 (P) (0%) 0 (F) (0%) 145 (F)
EXTI_Init 13 (P) 7 (P) (54%) 1 (P) (8%) 5 (P) (38%) 1 (P)
EXTI_StructInit 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
EXTI_GenerateSWInterrupt 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
EXTI_GetFlagStatus 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
EXTI_ClearFlag 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
EXTI_GetITStatus 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
EXTI_ClearITPendingBit 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_exti.c 1746 (P) 1704 (F) (98%) 10 (P) (1%) 32 (P) (2%) 198 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_exti.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
EXTI_DeInit 27 (P) 3685 (F) 3685 (F) 0 (F) 0 (F)
EXTI_Init 113 (P) 12 (P) 6 (P) 1 (P) 4 (F)
EXTI_StructInit 7 (P) 86 (P) 86 (P) 0 (F) 0 (F)
EXTI_GenerateSWInterrupt 19 (P) 37 (P) 32 (P) 5 (P) 0 (F)
EXTI_GetFlagStatus 123 (P) 7 (F) 6 (P) 1 (P) 0 (F)
EXTI_ClearFlag 19 (P) 37 (P) 32 (P) 5 (P) 0 (F)
EXTI_GetITStatus 133 (P) 6 (F) 5 (P) 1 (P) 0 (F)
EXTI_ClearITPendingBit 19 (P) 37 (P) 32 (P) 5 (P) 0 (F)
           
Total for stm32f10x_exti.c 743 (P) 235 (F) 229 1 (P) 4 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_exti.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
EXTI_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
EXTI_Init 2 (P) 8 (P) 0 (P) 1 (P) Yes (P)
EXTI_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
EXTI_GenerateSWInterrupt 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
EXTI_GetFlagStatus 1 (P) 21 (F) 0 (P) 1 (P) Yes (P)
EXTI_ClearFlag 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
EXTI_GetITStatus 1 (P) 22 (F) 0 (P) 1 (P) Yes (P)
EXTI_ClearITPendingBit 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_exti.c 20 (P) 68 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_exti.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_exti.c 937 (F) 25337 (F) 25 (P) 520 (F) 545 (F) 26274 (F) 238833 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_exti.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
EXTI_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_GenerateSWInterrupt 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
EXTI_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_exti.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_exti.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_exti.c 159 (P) 157 (P) 2 (P) 22 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_exti.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
EXTI_DeInit 0 (P) 0 (P) 0 (P)
EXTI_Init 0 (P) 0 (P) 1 (P)
EXTI_StructInit 0 (P) 0 (P) 0 (P)
EXTI_GenerateSWInterrupt 0 (P) 0 (P) 1 (P)
EXTI_GetFlagStatus 0 (P) 0 (P) 1 (P)
EXTI_ClearFlag 0 (P) 0 (P) 1 (P)
EXTI_GetITStatus 0 (P) 0 (P) 1 (P)
EXTI_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_exti.c 2 (P) 1 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_dma.c


Reformatted Code Information for File (stm32f10x_dma.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_dma.c 10740 (F) 2317 (F) (22%) 2044 (F) (19%) 6379 (F) (59%) 28 (P) 12130 (F) 0.89 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_dma.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
DMA_DeInit 392 (F) 48 (F) 8.17 (F) 1 (P) 1 (P)
DMA_Init 245 (F) 35 (F) 7.00 (F) 1 (P) 1 (P)
DMA_StructInit 21 (P) 1 (P) 21.00 (F) 1 (P) 1 (P)
DMA_Cmd 125 (P) 18 (P) 6.94 (F) 1 (P) 1 (P)
DMA_ITConfig 135 (P) 20 (P) 6.75 (F) 1 (P) 1 (P)
DMA_SetCurrDataCounter 102 (P) 13 (P) 7.85 (F) 1 (P) 1 (P)
DMA_GetCurrDataCounter 103 (P) 13 (P) 7.92 (F) 1 (P) 1 (P)
DMA_GetFlagStatus 278 (F) 55 (F) 5.05 (P) 1 (P) 1 (P)
DMA_ClearFlag 41 (P) 8 (P) 5.12 (P) 1 (P) 1 (P)
DMA_GetITStatus 278 (F) 55 (F) 5.05 (P) 1 (P) 1 (P)
           
DMA_ClearITPendingBit 41 (P) 8 (P) 5.12 (P) 1 (P) 1 (P)
           
Total for stm32f10x_dma.c 2044 (P) 338 (P) 6.05 (F) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_dma.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
DMA_DeInit 1275 (F) 1257 (F) (99%) 1 (P) (0%) 17 (P) (1%) 212 (F)
DMA_Init 29 (P) 9 (P) (31%) 1 (P) (3%) 19 (P) (66%) 1 (P)
DMA_StructInit 18 (P) 6 (P) (33%) 2 (P) (11%) 10 (P) (56%) 1 (P)
DMA_Cmd 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
DMA_ITConfig 17 (P) 14 (P) (82%) 1 (P) (6%) 2 (P) (12%) 1 (P)
DMA_SetCurrDataCounter 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
DMA_GetCurrDataCounter 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 1 (P)
DMA_GetFlagStatus 62 (P) 54 (F) (87%) 1 (P) (2%) 7 (P) (11%) 1 (P)
DMA_ClearFlag 58 (P) 54 (F) (93%) 1 (P) (2%) 3 (P) (5%) 1 (P)
DMA_GetITStatus 62 (P) 54 (F) (87%) 1 (P) (2%) 7 (P) (11%) 1 (P)
           
DMA_ClearITPendingBit 58 (P) 54 (F) (93%) 1 (P) (2%) 3 (P) (5%) 2 (P)
           
Total for stm32f10x_dma.c 2307 (P) 2191 (F) (95%) 16 (P) (1%) 100 (P) (4%) 268 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_dma.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
DMA_DeInit 392 (F) 325 (F) 321 (P) 0 (F) 4 (F)
DMA_Init 245 (F) 12 (P) 4 (P) 0 (F) 8 (P)
DMA_StructInit 21 (P) 86 (P) 29 (P) 10 (P) 48 (P)
DMA_Cmd 125 (P) 9 (F) 6 (P) 1 (P) 2 (F)
DMA_ITConfig 135 (P) 13 (P) 10 (P) 1 (P) 1 (F)
DMA_SetCurrDataCounter 102 (P) 12 (P) 9 (P) 1 (P) 2 (F)
DMA_GetCurrDataCounter 103 (P) 10 (P) 8 (P) 1 (P) 1 (F)
DMA_GetFlagStatus 278 (F) 22 (P) 19 (P) 0 (F) 3 (F)
DMA_ClearFlag 41 (P) 141 (P) 132 (P) 2 (P) 7 (P)
DMA_GetITStatus 278 (F) 22 (P) 19 (P) 0 (F) 3 (F)
           
DMA_ClearITPendingBit 41 (P) 141 (P) 132 (P) 2 (P) 7 (P)
           
Total for stm32f10x_dma.c 2044 (P) 113 (P) 107 1 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_dma.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
DMA_DeInit 11 (F) 24 (F) 0 (P) 1 (P) Yes (P)
DMA_Init 0 (P) 25 (F) 0 (P) 1 (P) Yes (P)
DMA_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DMA_Cmd 1 (P) 14 (F) 0 (P) 1 (P) Yes (P)
DMA_ITConfig 1 (P) 15 (F) 0 (P) 1 (P) Yes (P)
DMA_SetCurrDataCounter 0 (P) 12 (F) 0 (P) 1 (P) Yes (P)
DMA_GetCurrDataCounter 0 (P) 12 (F) 0 (P) 1 (P) Yes (P)
DMA_GetFlagStatus 2 (P) 50 (F) 0 (P) 1 (P) Yes (P)
DMA_ClearFlag 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
DMA_GetITStatus 2 (P) 50 (F) 0 (P) 1 (P) Yes (P)
           
DMA_ClearITPendingBit 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dma.c 35 (P) 217 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_dma.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_dma.c 2041 (F) 28204 (F) 26 (P) 586 (F) 612 (F) 30245 (F) 279989 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_dma.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
DMA_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_SetCurrDataCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_GetCurrDataCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
DMA_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dma.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_dma.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_dma.c 429 (P) 427 (P) 2 (P) 60 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_dma.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
DMA_DeInit 0 (P) 0 (P) 1 (P)
DMA_Init 0 (P) 0 (P) 1 (P)
DMA_StructInit 0 (P) 0 (P) 0 (P)
DMA_Cmd 0 (P) 0 (P) 1 (P)
DMA_ITConfig 0 (P) 0 (P) 1 (P)
DMA_SetCurrDataCounter 0 (P) 0 (P) 1 (P)
DMA_GetCurrDataCounter 0 (P) 0 (P) 1 (P)
DMA_GetFlagStatus 0 (P) 0 (P) 1 (P)
DMA_ClearFlag 0 (P) 0 (P) 1 (P)
DMA_GetITStatus 0 (P) 0 (P) 1 (P)
       
DMA_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_dma.c 2 (P) 1 (P) 12 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_dbgmcu.c


Reformatted Code Information for File (stm32f10x_dbgmcu.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_dbgmcu.c 7899 (F) 1718 (F) (22%) 336 (P) (4%) 5845 (F) (74%) 20 (P) 10532 (F) 0.75 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_dbgmcu.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
DBGMCU_GetREVID 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
DBGMCU_GetDEVID 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
DBGMCU_Config 40 (P) 8 (P) 5.00 (P) 1 (P) 1 (P)
           
Total for stm32f10x_dbgmcu.c 336 (P) 74 (P) 4.54 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_dbgmcu.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
DBGMCU_GetREVID 972 (F) 972 (F) (100%) 0 (P) (0%) 0 (F) (0%) 140 (F)
DBGMCU_GetDEVID 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
DBGMCU_Config 36 (P) 35 (P) (97%) 1 (P) (3%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_dbgmcu.c 1708 (P) 1676 (F) (98%) 5 (P) (0%) 27 (P) (2%) 188 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_dbgmcu.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
DBGMCU_GetREVID 6 (P) 16200 (F) 16200 (F) 0 (F) 0 (F)
DBGMCU_GetDEVID 7 (P) 71 (P) 71 (P) 0 (F) 0 (F)
DBGMCU_Config 40 (P) 90 (P) 88 (P) 3 (P) 0 (F)
           
Total for stm32f10x_dbgmcu.c 336 (P) 508 (F) 499 1 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_dbgmcu.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
DBGMCU_GetREVID 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DBGMCU_GetDEVID 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DBGMCU_Config 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dbgmcu.c 17 (P) 20 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_dbgmcu.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_dbgmcu.c 640 (P) 25019 (F) 24 (P) 503 (F) 527 (F) 25659 (F) 231999 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_dbgmcu.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
DBGMCU_GetREVID 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DBGMCU_GetDEVID 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DBGMCU_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dbgmcu.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_dbgmcu.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_dbgmcu.c 76 (P) 74 (P) 2 (P) 6 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_dbgmcu.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
DBGMCU_GetREVID 0 (P) 0 (P) 0 (P)
DBGMCU_GetDEVID 0 (P) 0 (P) 0 (P)
DBGMCU_Config 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_dbgmcu.c 2 (P) 1 (P) 3 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_dac.c


Reformatted Code Information for File (stm32f10x_dac.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_dac.c 9247 (F) 2082 (F) (23%) 872 (P) (9%) 6293 (F) (68%) 29 (P) 11865 (F) 0.78 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_dac.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
DAC_DeInit 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
DAC_Init 217 (F) 39 (F) 5.56 (P) 1 (P) 1 (P)
DAC_StructInit 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
DAC_Cmd 47 (P) 8 (P) 5.87 (P) 1 (P) 1 (P)
DAC_DMACmd 47 (P) 8 (P) 5.87 (P) 1 (P) 1 (P)
DAC_SoftwareTriggerCmd 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
DAC_DualSoftwareTriggerCmd 32 (P) 6 (P) 5.33 (P) 1 (P) 1 (P)
DAC_WaveGenerationCmd 56 (P) 10 (P) 5.60 (P) 1 (P) 1 (P)
DAC_SetChannel1Data 29 (P) 4 (P) 7.25 (F) 1 (P) 1 (P)
DAC_SetChannel2Data 29 (P) 4 (P) 7.25 (F) 1 (P) 1 (P)
           
DAC_SetDualChannelData 46 (P) 7 (P) 6.57 (F) 1 (P) 1 (P)
DAC_GetDataOutputValue 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
           
Total for stm32f10x_dac.c 872 (P) 163 (P) 5.35 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_dac.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
DAC_DeInit 1226 (F) 1224 (F) (100%) 1 (P) (0%) 1 (P) (0%) 206 (F)
DAC_Init 23 (P) 11 (P) (48%) 1 (P) (4%) 11 (P) (48%) 1 (P)
DAC_StructInit 11 (P) 6 (P) (55%) 2 (P) (18%) 3 (P) (27%) 1 (P)
DAC_Cmd 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 1 (P)
DAC_DMACmd 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 1 (P)
DAC_SoftwareTriggerCmd 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 1 (P)
DAC_DualSoftwareTriggerCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
DAC_WaveGenerationCmd 17 (P) 14 (P) (82%) 1 (P) (6%) 2 (P) (12%) 1 (P)
DAC_SetChannel1Data 12 (P) 10 (P) (83%) 1 (P) (8%) 1 (P) (8%) 1 (P)
DAC_SetChannel2Data 12 (P) 10 (P) (83%) 1 (P) (8%) 1 (P) (8%) 1 (P)
           
DAC_SetDualChannelData 17 (P) 14 (P) (82%) 1 (P) (6%) 2 (P) (12%) 1 (P)
DAC_GetDataOutputValue 10 (P) 8 (P) (80%) 1 (P) (10%) 1 (P) (10%) 2 (P)
           
Total for stm32f10x_dac.c 2072 (P) 1998 (F) (96%) 17 (P) (1%) 57 (P) (3%) 263 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_dac.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
DAC_DeInit 8 (P) 15325 (F) 15300 (F) 13 (P) 13 (P)
DAC_Init 217 (F) 11 (P) 5 (P) 0 (F) 5 (P)
DAC_StructInit 10 (P) 110 (P) 60 (P) 20 (P) 30 (P)
DAC_Cmd 47 (P) 28 (P) 21 (P) 2 (P) 4 (F)
DAC_DMACmd 47 (P) 28 (P) 21 (P) 2 (P) 4 (F)
DAC_SoftwareTriggerCmd 46 (P) 28 (P) 22 (P) 2 (P) 4 (F)
DAC_DualSoftwareTriggerCmd 32 (P) 31 (P) 22 (P) 3 (P) 6 (P)
DAC_WaveGenerationCmd 56 (P) 30 (P) 25 (P) 2 (P) 4 (F)
DAC_SetChannel1Data 29 (P) 41 (P) 34 (P) 3 (P) 3 (F)
DAC_SetChannel2Data 29 (P) 41 (P) 34 (P) 3 (P) 3 (F)
           
DAC_SetDualChannelData 46 (P) 37 (P) 30 (P) 2 (P) 4 (F)
DAC_GetDataOutputValue 22 (P) 45 (P) 36 (P) 5 (P) 5 (P)
           
Total for stm32f10x_dac.c 872 (P) 238 (F) 229 2 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_dac.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
DAC_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DAC_Init 0 (P) 35 (F) 0 (P) 1 (P) Yes (P)
DAC_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DAC_Cmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
DAC_DMACmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
DAC_SoftwareTriggerCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
DAC_DualSoftwareTriggerCmd 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
DAC_WaveGenerationCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
DAC_SetChannel1Data 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
DAC_SetChannel2Data 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
DAC_SetDualChannelData 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
DAC_GetDataOutputValue 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dac.c 22 (P) 74 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_dac.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_dac.c 1165 (F) 26974 (F) 26 (P) 569 (F) 595 (F) 28139 (F) 259350 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_dac.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
DAC_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_SoftwareTriggerCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_DualSoftwareTriggerCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_WaveGenerationCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_SetChannel1Data 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_SetChannel2Data 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
DAC_SetDualChannelData 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DAC_GetDataOutputValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_dac.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_dac.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_dac.c 230 (P) 228 (P) 2 (P) 75 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_dac.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
DAC_DeInit 0 (P) 0 (P) 1 (P)
DAC_Init 0 (P) 0 (P) 1 (P)
DAC_StructInit 0 (P) 0 (P) 0 (P)
DAC_Cmd 0 (P) 0 (P) 1 (P)
DAC_DMACmd 0 (P) 0 (P) 1 (P)
DAC_SoftwareTriggerCmd 0 (P) 0 (P) 1 (P)
DAC_DualSoftwareTriggerCmd 0 (P) 0 (P) 1 (P)
DAC_WaveGenerationCmd 0 (P) 0 (P) 1 (P)
DAC_SetChannel1Data 0 (P) 0 (P) 1 (P)
DAC_SetChannel2Data 0 (P) 0 (P) 1 (P)
       
DAC_SetDualChannelData 0 (P) 0 (P) 1 (P)
DAC_GetDataOutputValue 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_dac.c 2 (P) 1 (P) 13 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_crc.c


Reformatted Code Information for File (stm32f10x_crc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_crc.c 7897 (F) 1704 (F) (22%) 350 (P) (4%) 5843 (F) (74%) 23 (P) 10505 (F) 0.75 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_crc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
CRC_ResetDR 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
CRC_CalcCRC 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
CRC_CalcBlockCRC 23 (P) 5 (P) 4.60 (P) 1 (P) 1 (P)
CRC_GetCRC 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
CRC_SetIDRegister 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
CRC_GetIDRegister 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
           
Total for stm32f10x_crc.c 350 (P) 74 (P) 4.73 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_crc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
CRC_ResetDR 973 (F) 972 (F) (100%) 1 (P) (0%) 0 (F) (0%) 140 (F)
CRC_CalcCRC 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
CRC_CalcBlockCRC 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
CRC_GetCRC 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
CRC_SetIDRegister 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
CRC_GetIDRegister 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_crc.c 1694 (P) 1662 (F) (98%) 5 (P) (0%) 27 (P) (2%) 191 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_crc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
CRC_ResetDR 8 (P) 12163 (F) 12150 (F) 13 (P) 0 (F)
CRC_CalcCRC 13 (P) 38 (P) 38 (P) 0 (F) 0 (F)
CRC_CalcBlockCRC 23 (P) 26 (P) 26 (P) 0 (F) 0 (F)
CRC_GetCRC 8 (P) 63 (P) 63 (P) 0 (F) 0 (F)
CRC_SetIDRegister 7 (P) 71 (P) 71 (P) 0 (F) 0 (F)
CRC_GetIDRegister 8 (P) 63 (P) 63 (P) 0 (F) 0 (F)
           
Total for stm32f10x_crc.c 350 (P) 484 (F) 475 1 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_crc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
CRC_ResetDR 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CRC_CalcCRC 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CRC_CalcBlockCRC 4 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CRC_GetCRC 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CRC_SetIDRegister 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CRC_GetIDRegister 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_crc.c 20 (P) 18 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_crc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_crc.c 659 (P) 24872 (F) 25 (P) 500 (F) 525 (F) 25531 (F) 230702 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_crc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
CRC_ResetDR 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CRC_CalcCRC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CRC_CalcBlockCRC 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
CRC_GetCRC 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CRC_SetIDRegister 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CRC_GetIDRegister 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_crc.c 3 (P) 1 (P) 5 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_crc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_crc.c 75 (P) 73 (P) 2 (P) 6 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_crc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
CRC_ResetDR 0 (P) 0 (P) 0 (P)
CRC_CalcCRC 0 (P) 0 (P) 0 (P)
CRC_CalcBlockCRC 0 (P) 0 (P) 0 (P)
CRC_GetCRC 0 (P) 0 (P) 0 (P)
CRC_SetIDRegister 0 (P) 0 (P) 0 (P)
CRC_GetIDRegister 0 (P) 0 (P) 0 (P)
       
Total for stm32f10x_crc.c 2 (P) 1 (P) 2 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_cec.c


Reformatted Code Information for File (stm32f10x_cec.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_cec.c 8997 (F) 2064 (F) (23%) 673 (P) (7%) 6260 (F) (70%) 31 (P) 11620 (F) 0.78 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_cec.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
CEC_DeInit 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
CEC_Init 38 (P) 5 (P) 7.60 (F) 1 (P) 1 (P)
CEC_Cmd 39 (P) 8 (P) 4.87 (P) 1 (P) 1 (P)
CEC_ITConfig 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
CEC_OwnAddressConfig 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
CEC_SetPrescaler 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
CEC_SendDataByte 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
CEC_ReceiveDataByte 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
CEC_StartOfMessage 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
CEC_EndOfMessageCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
           
CEC_GetFlagStatus 108 (P) 21 (P) 5.14 (P) 1 (P) 1 (P)
CEC_ClearFlag 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)
CEC_GetITStatus 52 (P) 10 (P) 5.20 (P) 1 (P) 1 (P)
CEC_ClearITPendingBit 35 (P) 5 (P) 7.00 (F) 1 (P) 1 (P)
           
Total for stm32f10x_cec.c 673 (P) 128 (P) 5.26 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_cec.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
CEC_DeInit 1218 (F) 1216 (F) (100%) 1 (P) (0%) 1 (P) (0%) 204 (F)
CEC_Init 14 (P) 8 (P) (57%) 1 (P) (7%) 5 (P) (36%) 1 (P)
CEC_Cmd 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
CEC_ITConfig 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
CEC_OwnAddressConfig 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
CEC_SetPrescaler 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
CEC_SendDataByte 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
CEC_ReceiveDataByte 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
CEC_StartOfMessage 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
CEC_EndOfMessageCmd 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
           
CEC_GetFlagStatus 30 (P) 20 (P) (67%) 1 (P) (3%) 9 (P) (30%) 1 (P)
CEC_ClearFlag 14 (P) 12 (P) (86%) 1 (P) (7%) 1 (P) (7%) 1 (P)
CEC_GetITStatus 16 (P) 10 (P) (63%) 1 (P) (6%) 5 (P) (31%) 1 (P)
CEC_ClearITPendingBit 12 (P) 10 (P) (83%) 1 (P) (8%) 1 (P) (8%) 2 (P)
           
Total for stm32f10x_cec.c 2054 (P) 1983 (F) (97%) 18 (P) (1%) 53 (P) (3%) 263 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_cec.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
CEC_DeInit 8 (P) 15225 (F) 15200 (F) 13 (P) 13 (P)
CEC_Init 38 (P) 37 (P) 21 (P) 3 (P) 13 (P)
CEC_Cmd 39 (P) 21 (P) 15 (P) 3 (P) 3 (F)
CEC_ITConfig 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
CEC_OwnAddressConfig 9 (P) 78 (P) 56 (P) 11 (P) 11 (P)
CEC_SetPrescaler 9 (P) 78 (P) 56 (P) 11 (P) 11 (P)
CEC_SendDataByte 6 (P) 100 (P) 83 (P) 17 (P) 0 (F)
CEC_ReceiveDataByte 7 (P) 86 (P) 71 (P) 14 (P) 0 (F)
CEC_StartOfMessage 11 (P) 55 (P) 45 (P) 9 (P) 0 (F)
CEC_EndOfMessageCmd 22 (P) 36 (P) 27 (P) 5 (P) 5 (P)
           
CEC_GetFlagStatus 108 (P) 28 (P) 19 (P) 1 (P) 8 (P)
CEC_ClearFlag 24 (P) 58 (P) 50 (P) 4 (P) 4 (F)
CEC_GetITStatus 52 (P) 31 (P) 19 (P) 2 (P) 10 (P)
CEC_ClearITPendingBit 35 (P) 34 (P) 29 (P) 3 (P) 3 (F)
           
Total for stm32f10x_cec.c 673 (P) 305 (F) 295 3 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_cec.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
CEC_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_Init 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
CEC_Cmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CEC_ITConfig 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CEC_OwnAddressConfig 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_SetPrescaler 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_SendDataByte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_ReceiveDataByte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_StartOfMessage 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CEC_EndOfMessageCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
CEC_GetFlagStatus 2 (P) 16 (F) 0 (P) 1 (P) Yes (P)
CEC_ClearFlag 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CEC_GetITStatus 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
CEC_ClearITPendingBit 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_cec.c 20 (P) 48 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_cec.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_cec.c 1041 (F) 26612 (F) 26 (P) 556 (F) 582 (F) 27653 (F) 253989 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_cec.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
CEC_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_Cmd 1 (P) 1 (P) 3 (P) 2 (P) Yes (P)
CEC_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_OwnAddressConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_SetPrescaler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_SendDataByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_ReceiveDataByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_StartOfMessage 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_EndOfMessageCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
CEC_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CEC_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_cec.c 3 (P) 1 (P) 6 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_cec.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_cec.c 136 (P) 134 (P) 2 (P) 15 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_cec.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
CEC_DeInit 0 (P) 0 (P) 1 (P)
CEC_Init 0 (P) 0 (P) 1 (P)
CEC_Cmd 0 (P) 0 (P) 1 (P)
CEC_ITConfig 0 (P) 0 (P) 1 (P)
CEC_OwnAddressConfig 0 (P) 0 (P) 1 (P)
CEC_SetPrescaler 0 (P) 0 (P) 1 (P)
CEC_SendDataByte 0 (P) 0 (P) 0 (P)
CEC_ReceiveDataByte 0 (P) 0 (P) 0 (P)
CEC_StartOfMessage 0 (P) 0 (P) 0 (P)
CEC_EndOfMessageCmd 0 (P) 0 (P) 1 (P)
       
CEC_GetFlagStatus 0 (P) 0 (P) 1 (P)
CEC_ClearFlag 0 (P) 0 (P) 1 (P)
CEC_GetITStatus 0 (P) 0 (P) 1 (P)
CEC_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_cec.c 2 (P) 1 (P) 13 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_can.c


Reformatted Code Information for File (stm32f10x_can.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_can.c 11665 (F) 2586 (F) (22%) 2485 (F) (21%) 6594 (F) (57%) 42 (F) 13089 (F) 0.89 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_can.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
CAN_DeInit 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
CAN_Init 300 (F) 59 (F) 5.08 (P) 1 (P) 1 (P)
CAN_FilterInit 163 (P) 22 (P) 7.41 (F) 1 (P) 1 (P)
CAN_StructInit 17 (P) 1 (P) 17.00 (F) 1 (P) 1 (P)
CAN_SlaveStartBank 31 (P) 3 (P) 10.33 (F) 1 (P) 1 (P)
CAN_DBGFreeze 43 (P) 8 (P) 5.37 (P) 1 (P) 1 (P)
CAN_TTComModeCmd 61 (P) 8 (P) 7.62 (F) 1 (P) 1 (P)
CAN_Transmit 136 (P) 21 (P) 6.48 (F) 1 (P) 1 (P)
CAN_TransmitStatus 91 (P) 19 (P) 4.79 (P) 1 (P) 1 (P)
CAN_CancelTransmit 42 (P) 9 (P) 4.67 (P) 1 (P) 1 (P)
           
CAN_Receive 70 (P) 11 (P) 6.36 (F) 1 (P) 1 (P)
CAN_FIFORelease 46 (P) 8 (P) 5.75 (P) 1 (P) 1 (P)
CAN_MessagePending 56 (P) 11 (P) 5.09 (P) 1 (P) 1 (P)
CAN_OperatingModeRequest 170 (P) 39 (F) 4.36 (P) 1 (P) 1 (P)
CAN_Sleep 37 (P) 5 (P) 7.40 (F) 1 (P) 1 (P)
CAN_WakeUp 46 (P) 10 (P) 4.60 (P) 1 (P) 1 (P)
CAN_GetLastErrorCode 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)
CAN_GetReceiveErrorCounter 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
CAN_GetLSBTransmitErrorCounter 23 (P) 3 (P) 7.67 (F) 1 (P) 1 (P)
CAN_ITConfig 114 (P) 22 (P) 5.18 (P) 1 (P) 1 (P)
           
CAN_GetFlagStatus 194 (P) 45 (F) 4.31 (P) 1 (P) 1 (P)
CAN_ClearFlag 118 (P) 25 (P) 4.72 (P) 1 (P) 1 (P)
CAN_GetITStatus 198 (P) 37 (F) 5.35 (P) 1 (P) 1 (P)
CAN_ClearITPendingBit 141 (P) 30 (P) 4.70 (P) 1 (P) 1 (P)
CheckITStatus 15 (P) 4 (P) 3.75 (P) 1 (P) 1 (P)
           
Total for stm32f10x_can.c 2485 (P) 476 (P) 5.22 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_can.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
CAN_DeInit 1445 (F) 1440 (F) (100%) 1 (P) (0%) 4 (P) (0%) 241 (F)
CAN_Init 27 (P) 11 (P) (41%) 1 (P) (4%) 15 (P) (56%) 1 (P)
CAN_FilterInit 29 (P) 8 (P) (28%) 1 (P) (3%) 20 (P) (69%) 1 (P)
CAN_StructInit 18 (P) 6 (P) (33%) 2 (P) (11%) 10 (P) (56%) 1 (P)
CAN_SlaveStartBank 10 (P) 6 (P) (60%) 1 (P) (10%) 3 (P) (30%) 1 (P)
CAN_DBGFreeze 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
CAN_TTComModeCmd 16 (P) 11 (P) (69%) 1 (P) (6%) 4 (P) (25%) 1 (P)
CAN_Transmit 14 (P) 8 (P) (57%) 1 (P) (7%) 5 (P) (36%) 1 (P)
CAN_TransmitStatus 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 1 (P)
CAN_CancelTransmit 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 1 (P)
           
CAN_Receive 17 (P) 8 (P) (47%) 1 (P) (6%) 8 (P) (47%) 1 (P)
CAN_FIFORelease 10 (P) 6 (P) (60%) 1 (P) (10%) 3 (P) (30%) 1 (P)
CAN_MessagePending 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
CAN_OperatingModeRequest 16 (P) 8 (P) (50%) 2 (P) (13%) 6 (P) (38%) 1 (P)
CAN_Sleep 11 (P) 6 (P) (55%) 1 (P) (9%) 4 (P) (36%) 1 (P)
CAN_WakeUp 11 (P) 6 (P) (55%) 1 (P) (9%) 4 (P) (36%) 1 (P)
CAN_GetLastErrorCode 16 (P) 13 (P) (81%) 1 (P) (6%) 2 (P) (13%) 1 (P)
CAN_GetReceiveErrorCounter 14 (P) 11 (P) (79%) 1 (P) (7%) 2 (P) (14%) 1 (P)
CAN_GetLSBTransmitErrorCounter 8 (F) 5 (P) (63%) 1 (P) (13%) 2 (P) (25%) 1 (P)
CAN_ITConfig 25 (P) 22 (P) (88%) 1 (P) (4%) 2 (P) (8%) 1 (P)
           
CAN_GetFlagStatus 40 (P) 22 (P) (55%) 1 (P) (3%) 17 (P) (43%) 1 (P)
CAN_ClearFlag 26 (P) 17 (P) (65%) 1 (P) (4%) 8 (P) (31%) 1 (P)
CAN_GetITStatus 41 (P) 21 (P) (51%) 1 (P) (2%) 19 (P) (46%) 1 (P)
CAN_ClearITPendingBit 41 (P) 18 (P) (44%) 1 (P) (2%) 22 (P) (54%) 1 (P)
CheckITStatus 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 2 (P)
           
Total for stm32f10x_can.c 2576 (P) 2351 (F) (91%) 30 (P) (1%) 195 (P) (8%) 311 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_can.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
CAN_DeInit 43 (P) 3360 (F) 3349 (F) 2 (P) 9 (P)
CAN_Init 300 (F) 9 (F) 4 (P) 0 (F) 5 (P)
CAN_FilterInit 163 (P) 18 (P) 5 (P) 1 (P) 12 (P)
CAN_StructInit 17 (P) 106 (P) 35 (P) 12 (P) 59 (P)
CAN_SlaveStartBank 31 (P) 32 (P) 19 (P) 3 (P) 10 (P)
CAN_DBGFreeze 43 (P) 23 (P) 16 (P) 2 (P) 5 (P)
CAN_TTComModeCmd 61 (P) 26 (P) 18 (P) 2 (P) 7 (P)
CAN_Transmit 136 (P) 10 (P) 6 (P) 1 (P) 4 (F)
CAN_TransmitStatus 91 (P) 14 (P) 10 (P) 1 (P) 3 (F)
CAN_CancelTransmit 42 (P) 19 (P) 14 (P) 2 (P) 2 (F)
           
CAN_Receive 70 (P) 24 (P) 11 (P) 1 (P) 11 (P)
CAN_FIFORelease 46 (P) 22 (P) 13 (P) 2 (P) 7 (P)
CAN_MessagePending 56 (P) 13 (P) 11 (P) 2 (P) 0 (F)
CAN_OperatingModeRequest 170 (P) 9 (F) 5 (P) 1 (P) 4 (F)
CAN_Sleep 37 (P) 30 (P) 16 (P) 3 (P) 11 (P)
CAN_WakeUp 46 (P) 24 (P) 13 (P) 2 (P) 9 (P)
CAN_GetLastErrorCode 24 (P) 67 (P) 54 (P) 4 (P) 8 (P)
CAN_GetReceiveErrorCounter 23 (P) 61 (P) 48 (P) 4 (P) 9 (P)
CAN_GetLSBTransmitErrorCounter 23 (P) 35 (P) 22 (P) 4 (P) 9 (P)
CAN_ITConfig 114 (P) 22 (P) 19 (P) 1 (P) 2 (F)
           
CAN_GetFlagStatus 194 (P) 21 (P) 11 (P) 1 (P) 9 (P)
CAN_ClearFlag 118 (P) 22 (P) 14 (P) 1 (P) 7 (P)
CAN_GetITStatus 198 (P) 21 (P) 11 (P) 1 (P) 10 (P)
CAN_ClearITPendingBit 141 (P) 29 (P) 13 (P) 1 (P) 16 (P)
CheckITStatus 15 (P) 53 (P) 40 (P) 0 (F) 13 (P)
           
Total for stm32f10x_can.c 2485 (P) 104 (P) 95 1 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_can.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
CAN_DeInit 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
CAN_Init 10 (F) 27 (F) 0 (P) 1 (P) Yes (P)
CAN_FilterInit 1 (P) 11 (F) 0 (P) 1 (P) Yes (P)
CAN_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CAN_SlaveStartBank 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CAN_DBGFreeze 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CAN_TTComModeCmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CAN_Transmit 4 (P) 9 (P) 0 (P) 1 (P) Yes (P)
CAN_TransmitStatus 34 (F) 12 (F) 0 (P) 1 (P) Yes (P)
CAN_CancelTransmit 6 (F) 5 (P) 0 (P) 1 (P) Yes (P)
           
CAN_Receive 2 (P) 5 (P) 0 (P) 1 (P) Yes (P)
CAN_FIFORelease 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CAN_MessagePending 2 (P) 5 (P) 0 (P) 1 (P) Yes (P)
CAN_OperatingModeRequest 9 (F) 16 (F) 0 (P) 1 (P) Yes (P)
CAN_Sleep 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
CAN_WakeUp 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
CAN_GetLastErrorCode 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CAN_GetReceiveErrorCounter 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CAN_GetLSBTransmitErrorCounter 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CAN_ITConfig 1 (P) 17 (F) 0 (P) 1 (P) Yes (P)
           
CAN_GetFlagStatus 9 (F) 25 (F) 0 (P) 1 (P) Yes (P)
CAN_ClearFlag 4 (P) 15 (F) 0 (P) 1 (P) Yes (P)
CAN_GetITStatus 106 (F) 30 (F) 0 (P) 1 (P) Yes (P)
CAN_ClearITPendingBit 78 (F) 25 (F) 0 (P) 1 (P) Yes (P)
CheckITStatus 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_can.c 288 (F) 228 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_can.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_can.c 2216 (F) 28402 (F) 30 (P) 691 (F) 721 (F) 30618 (F) 290682 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_can.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
CAN_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_Init 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
CAN_FilterInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_SlaveStartBank 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_DBGFreeze 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_TTComModeCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_Transmit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_TransmitStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_CancelTransmit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
CAN_Receive 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_FIFORelease 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_MessagePending 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_OperatingModeRequest 3 (P) 1 (P) 7 (F) 2 (P) Yes (P)
CAN_Sleep 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_WakeUp 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
CAN_GetLastErrorCode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_GetReceiveErrorCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_GetLSBTransmitErrorCounter 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
CAN_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CAN_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CheckITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_can.c 8 (P) 1 (P) 14 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_can.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_can.c 863 (P) 861 (P) 2 (P) 80 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_can.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
CAN_DeInit 0 (P) 0 (P) 2 (P)
CAN_Init 0 (P) 0 (P) 1 (P)
CAN_FilterInit 0 (P) 0 (P) 1 (P)
CAN_StructInit 0 (P) 0 (P) 0 (P)
CAN_SlaveStartBank 0 (P) 0 (P) 1 (P)
CAN_DBGFreeze 0 (P) 0 (P) 1 (P)
CAN_TTComModeCmd 0 (P) 0 (P) 1 (P)
CAN_Transmit 0 (P) 0 (P) 1 (P)
CAN_TransmitStatus 0 (P) 0 (P) 1 (P)
CAN_CancelTransmit 0 (P) 0 (P) 1 (P)
       
CAN_Receive 0 (P) 0 (P) 1 (P)
CAN_FIFORelease 0 (P) 0 (P) 1 (P)
CAN_MessagePending 0 (P) 0 (P) 1 (P)
CAN_OperatingModeRequest 0 (P) 0 (P) 1 (P)
CAN_Sleep 0 (P) 0 (P) 1 (P)
CAN_WakeUp 0 (P) 0 (P) 1 (P)
CAN_GetLastErrorCode 0 (P) 0 (P) 1 (P)
CAN_GetReceiveErrorCounter 0 (P) 0 (P) 1 (P)
CAN_GetLSBTransmitErrorCounter 0 (P) 0 (P) 1 (P)
CAN_ITConfig 0 (P) 0 (P) 1 (P)
       
CAN_GetFlagStatus 0 (P) 0 (P) 1 (P)
CAN_ClearFlag 0 (P) 0 (P) 1 (P)
CAN_GetITStatus 0 (P) 0 (P) 2 (P)
CAN_ClearITPendingBit 0 (P) 0 (P) 1 (P)
CheckITStatus 0 (P) 1 (P) 0 (P)
       
Total for stm32f10x_can.c 2 (P) 2 (P) 27 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_bkp.c


Reformatted Code Information for File (stm32f10x_bkp.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_bkp.c 9122 (F) 1979 (F) (22%) 885 (P) (10%) 6258 (F) (69%) 29 (P) 11480 (F) 0.80 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_bkp.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
BKP_DeInit 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
BKP_TamperPinLevelConfig 24 (P) 3 (P) 8.00 (F) 1 (P) 1 (P)
BKP_TamperPinCmd 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
BKP_ITConfig 22 (P) 3 (P) 7.33 (F) 1 (P) 1 (P)
BKP_RTCOutputConfig 36 (P) 5 (P) 7.20 (F) 1 (P) 1 (P)
BKP_SetRTCCalibrationValue 16 (P) 1 (P) 16.00 (F) 1 (P) 1 (P)
BKP_WriteBackupRegister 220 (F) 43 (F) 5.12 (P) 1 (P) 1 (P)
BKP_ReadBackupRegister 220 (F) 43 (F) 5.12 (P) 1 (P) 1 (P)
BKP_GetFlagStatus 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
BKP_ClearFlag 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
           
BKP_GetITStatus 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
BKP_ClearITPendingBit 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
           
Total for stm32f10x_bkp.c 885 (P) 170 (P) 5.21 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_bkp.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
BKP_DeInit 1187 (F) 1187 (F) (100%) 0 (P) (0%) 0 (F) (0%) 195 (F)
BKP_TamperPinLevelConfig 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 1 (P)
BKP_TamperPinCmd 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
BKP_ITConfig 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
BKP_RTCOutputConfig 17 (P) 13 (P) (76%) 1 (P) (6%) 3 (P) (18%) 1 (P)
BKP_SetRTCCalibrationValue 10 (P) 6 (P) (60%) 1 (P) (10%) 3 (P) (30%) 1 (P)
BKP_WriteBackupRegister 8 (F) 7 (P) (88%) 1 (P) (13%) 0 (F) (0%) 1 (P)
BKP_ReadBackupRegister 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 1 (P)
BKP_GetFlagStatus 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
BKP_ClearFlag 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 1 (P)
           
BKP_GetITStatus 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
BKP_ClearITPendingBit 6 (F) 5 (P) (83%) 1 (P) (17%) 0 (F) (0%) 2 (P)
           
Total for stm32f10x_bkp.c 1969 (P) 1923 (F) (98%) 13 (P) (1%) 33 (P) (2%) 252 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_bkp.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
BKP_DeInit 4 (P) 29675 (F) 29675 (F) 0 (F) 0 (F)
BKP_TamperPinLevelConfig 24 (P) 38 (P) 33 (P) 4 (P) 0 (F)
BKP_TamperPinCmd 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
BKP_ITConfig 22 (P) 32 (P) 27 (P) 5 (P) 0 (F)
BKP_RTCOutputConfig 36 (P) 47 (P) 36 (P) 3 (P) 8 (P)
BKP_SetRTCCalibrationValue 16 (P) 63 (P) 38 (P) 6 (P) 19 (P)
BKP_WriteBackupRegister 220 (F) 4 (F) 3 (P) 0 (F) 0 (F)
BKP_ReadBackupRegister 220 (F) 3 (F) 3 (P) 0 (F) 0 (F)
BKP_GetFlagStatus 12 (P) 42 (P) 42 (P) 0 (F) 0 (F)
BKP_ClearFlag 7 (P) 86 (P) 71 (P) 14 (P) 0 (F)
           
BKP_GetITStatus 12 (P) 42 (P) 42 (P) 0 (F) 0 (F)
BKP_ClearITPendingBit 7 (P) 86 (P) 71 (P) 14 (P) 0 (F)
           
Total for stm32f10x_bkp.c 885 (P) 222 (F) 217 1 (P) 4 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_bkp.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
BKP_DeInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
BKP_TamperPinLevelConfig 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
BKP_TamperPinCmd 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
BKP_ITConfig 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
BKP_RTCOutputConfig 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
BKP_SetRTCCalibrationValue 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
BKP_WriteBackupRegister 0 (P) 42 (F) 0 (P) 1 (P) Yes (P)
BKP_ReadBackupRegister 0 (P) 42 (F) 0 (P) 1 (P) Yes (P)
BKP_GetFlagStatus 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
BKP_ClearFlag 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
BKP_GetITStatus 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
BKP_ClearITPendingBit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_bkp.c 16 (P) 105 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_bkp.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_bkp.c 1160 (F) 26896 (F) 26 (P) 542 (F) 568 (F) 28056 (F) 256705 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_bkp.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
BKP_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_TamperPinLevelConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_TamperPinCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_RTCOutputConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_SetRTCCalibrationValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_WriteBackupRegister 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_ReadBackupRegister 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
BKP_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
BKP_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_bkp.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_bkp.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_bkp.c 169 (P) 167 (P) 2 (P) 42 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_bkp.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
BKP_DeInit 0 (P) 0 (P) 1 (P)
BKP_TamperPinLevelConfig 0 (P) 0 (P) 1 (P)
BKP_TamperPinCmd 0 (P) 0 (P) 1 (P)
BKP_ITConfig 0 (P) 0 (P) 1 (P)
BKP_RTCOutputConfig 0 (P) 0 (P) 1 (P)
BKP_SetRTCCalibrationValue 0 (P) 0 (P) 1 (P)
BKP_WriteBackupRegister 0 (P) 0 (P) 1 (P)
BKP_ReadBackupRegister 0 (P) 0 (P) 1 (P)
BKP_GetFlagStatus 0 (P) 0 (P) 0 (P)
BKP_ClearFlag 0 (P) 0 (P) 0 (P)
       
BKP_GetITStatus 0 (P) 0 (P) 0 (P)
BKP_ClearITPendingBit 0 (P) 0 (P) 0 (P)
       
Total for stm32f10x_bkp.c 2 (P) 1 (P) 10 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



stm32f10x_adc.c


Reformatted Code Information for File (stm32f10x_adc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for stm32f10x_adc.c 11904 (F) 2592 (F) (22%) 2646 (F) (22%) 6666 (F) (56%) 53 (F) 12767 (F) 0.93 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (stm32f10x_adc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
ADC_DeInit 83 (P) 12 (P) 6.92 (F) 1 (P) 1 (P)
ADC_Init 219 (F) 36 (F) 6.08 (F) 1 (P) 1 (P)
ADC_StructInit 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
ADC_Cmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_DMACmd 45 (P) 8 (P) 5.62 (P) 1 (P) 1 (P)
ADC_ITConfig 64 (P) 11 (P) 5.82 (P) 1 (P) 1 (P)
ADC_ResetCalibration 31 (P) 4 (P) 7.75 (F) 1 (P) 1 (P)
ADC_GetResetCalibrationStatus 43 (P) 7 (P) 6.14 (F) 1 (P) 1 (P)
ADC_StartCalibration 31 (P) 4 (P) 7.75 (F) 1 (P) 1 (P)
ADC_GetCalibrationStatus 43 (P) 7 (P) 6.14 (F) 1 (P) 1 (P)
           
ADC_SoftwareStartConvCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_GetSoftwareStartConvStatus 43 (P) 7 (P) 6.14 (F) 1 (P) 1 (P)
ADC_DiscModeChannelCountConfig 46 (P) 6 (P) 7.67 (F) 1 (P) 1 (P)
ADC_DiscModeCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_RegularChannelConfig 239 (F) 41 (F) 5.83 (P) 1 (P) 1 (P)
ADC_ExternalTrigConvCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_GetConversionValue 30 (P) 4 (P) 7.50 (F) 1 (P) 1 (P)
ADC_GetDualModeConversionValue 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
ADC_AutoInjectedConvCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_InjectedDiscModeCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
           
ADC_ExternalTrigInjectedConvConfig 102 (P) 17 (P) 6.00 (P) 1 (P) 1 (P)
ADC_ExternalTrigInjectedConvCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_SoftwareStartInjectedConvCmd 53 (P) 9 (P) 5.89 (P) 1 (P) 1 (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 43 (P) 7 (P) 6.14 (F) 1 (P) 1 (P)
ADC_InjectedChannelConfig 211 (F) 35 (F) 6.03 (F) 1 (P) 1 (P)
ADC_InjectedSequencerLengthConfig 46 (P) 6 (P) 7.67 (F) 1 (P) 1 (P)
ADC_SetInjectedOffset 58 (P) 8 (P) 7.25 (F) 1 (P) 1 (P)
ADC_GetInjectedConversionValue 56 (P) 8 (P) 7.00 (F) 1 (P) 1 (P)
ADC_AnalogWatchdogCmd 72 (P) 11 (P) 6.55 (F) 1 (P) 1 (P)
ADC_AnalogWatchdogThresholdsConfig 37 (P) 4 (P) 9.25 (F) 1 (P) 1 (P)
           
ADC_AnalogWatchdogSingleChannelConfig 127 (P) 22 (P) 5.77 (P) 1 (P) 1 (P)
ADC_TempSensorVrefintCmd 34 (P) 6 (P) 5.67 (P) 1 (P) 1 (P)
ADC_GetFlagStatus 70 (P) 12 (P) 5.83 (P) 1 (P) 1 (P)
ADC_ClearFlag 42 (P) 6 (P) 7.00 (F) 1 (P) 1 (P)
ADC_GetITStatus 66 (P) 12 (P) 5.50 (P) 1 (P) 1 (P)
ADC_ClearITPendingBit 43 (P) 6 (P) 7.17 (F) 1 (P) 1 (P)
           
Total for stm32f10x_adc.c 2646 (P) 445 (P) 5.95 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (stm32f10x_adc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
ADC_DeInit 1315 (F) 1308 (F) (99%) 1 (P) (0%) 6 (P) (0%) 224 (F)
ADC_Init 30 (P) 8 (P) (27%) 1 (P) (3%) 21 (P) (70%) 1 (P)
ADC_StructInit 12 (P) 5 (P) (42%) 2 (P) (17%) 5 (P) (42%) 1 (P)
ADC_Cmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
ADC_DMACmd 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
ADC_ITConfig 16 (P) 12 (P) (75%) 1 (P) (6%) 3 (P) (19%) 1 (P)
ADC_ResetCalibration 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
ADC_GetResetCalibrationStatus 10 (P) 5 (P) (50%) 1 (P) (10%) 4 (P) (40%) 1 (P)
ADC_StartCalibration 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
ADC_GetCalibrationStatus 10 (P) 5 (P) (50%) 1 (P) (10%) 4 (P) (40%) 1 (P)
           
ADC_SoftwareStartConvCmd 12 (P) 7 (P) (58%) 1 (P) (8%) 4 (P) (33%) 1 (P)
ADC_GetSoftwareStartConvStatus 10 (P) 5 (P) (50%) 1 (P) (10%) 4 (P) (40%) 1 (P)
ADC_DiscModeChannelCountConfig 13 (P) 8 (P) (62%) 1 (P) (8%) 4 (P) (31%) 1 (P)
ADC_DiscModeCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
ADC_RegularChannelConfig 73 (P) 37 (P) (51%) 1 (P) (1%) 35 (P) (48%) 1 (P)
ADC_ExternalTrigConvCmd 10 (P) 7 (P) (70%) 1 (P) (10%) 2 (P) (20%) 1 (P)
ADC_GetConversionValue 7 (F) 5 (P) (71%) 1 (P) (14%) 1 (P) (14%) 1 (P)
ADC_GetDualModeConversionValue 5 (F) 4 (F) (80%) 1 (P) (20%) 0 (F) (0%) 1 (P)
ADC_AutoInjectedConvCmd 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
ADC_InjectedDiscModeCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
           
ADC_ExternalTrigInjectedConvConfig 27 (P) 22 (P) (81%) 1 (P) (4%) 4 (P) (15%) 1 (P)
ADC_ExternalTrigInjectedConvCmd 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
ADC_SoftwareStartInjectedConvCmd 13 (P) 8 (P) (62%) 1 (P) (8%) 4 (P) (31%) 1 (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 10 (P) 5 (P) (50%) 1 (P) (10%) 4 (P) (40%) 1 (P)
ADC_InjectedChannelConfig 60 (P) 37 (P) (62%) 1 (P) (2%) 22 (P) (37%) 1 (P)
ADC_InjectedSequencerLengthConfig 12 (P) 7 (P) (58%) 1 (P) (8%) 4 (P) (33%) 1 (P)
ADC_SetInjectedOffset 15 (P) 13 (P) (87%) 1 (P) (7%) 1 (P) (7%) 1 (P)
ADC_GetInjectedConversionValue 13 (P) 11 (P) (85%) 1 (P) (8%) 1 (P) (8%) 1 (P)
ADC_AnalogWatchdogCmd 20 (P) 15 (P) (75%) 1 (P) (5%) 4 (P) (20%) 1 (P)
ADC_AnalogWatchdogThresholdsConfig 12 (P) 9 (P) (75%) 1 (P) (8%) 2 (P) (17%) 1 (P)
           
ADC_AnalogWatchdogSingleChannelConfig 30 (P) 25 (P) (83%) 1 (P) (3%) 4 (P) (13%) 1 (P)
ADC_TempSensorVrefintCmd 9 (F) 6 (P) (67%) 1 (P) (11%) 2 (P) (22%) 1 (P)
ADC_GetFlagStatus 17 (P) 12 (P) (71%) 1 (P) (6%) 4 (P) (24%) 1 (P)
ADC_ClearFlag 14 (P) 12 (P) (86%) 1 (P) (7%) 1 (P) (7%) 1 (P)
ADC_GetITStatus 17 (P) 10 (P) (59%) 1 (P) (6%) 6 (P) (35%) 1 (P)
ADC_ClearITPendingBit 13 (P) 10 (P) (77%) 1 (P) (8%) 2 (P) (15%) 2 (P)
           
Total for stm32f10x_adc.c 2582 (P) 2342 (P) (91%) 41 (P) (2%) 199 (P) (8%) 305 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (stm32f10x_adc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
ADC_DeInit 83 (P) 1584 (F) 1576 (F) 1 (P) 7 (P)
ADC_Init 219 (F) 14 (P) 4 (P) 0 (F) 10 (P)
ADC_StructInit 11 (P) 109 (P) 45 (P) 18 (P) 45 (P)
ADC_Cmd 53 (P) 19 (P) 13 (P) 2 (P) 4 (F)
ADC_DMACmd 45 (P) 24 (P) 18 (P) 2 (P) 4 (F)
ADC_ITConfig 64 (P) 25 (P) 19 (P) 2 (P) 5 (P)
ADC_ResetCalibration 31 (P) 23 (P) 16 (P) 3 (P) 3 (F)
ADC_GetResetCalibrationStatus 43 (P) 23 (P) 12 (P) 2 (P) 9 (P)
ADC_StartCalibration 31 (P) 23 (P) 16 (P) 3 (P) 3 (F)
ADC_GetCalibrationStatus 43 (P) 23 (P) 12 (P) 2 (P) 9 (P)
           
ADC_SoftwareStartConvCmd 53 (P) 23 (P) 13 (P) 2 (P) 8 (P)
ADC_GetSoftwareStartConvStatus 43 (P) 23 (P) 12 (P) 2 (P) 9 (P)
ADC_DiscModeChannelCountConfig 46 (P) 28 (P) 17 (P) 2 (P) 9 (P)
ADC_DiscModeCmd 53 (P) 23 (P) 17 (P) 2 (P) 4 (F)
ADC_RegularChannelConfig 239 (F) 31 (P) 15 (P) 0 (F) 15 (P)
ADC_ExternalTrigConvCmd 53 (P) 19 (P) 13 (P) 2 (P) 4 (F)
ADC_GetConversionValue 30 (P) 23 (P) 17 (P) 3 (P) 3 (F)
ADC_GetDualModeConversionValue 4 (P) 125 (P) 100 (P) 25 (P) 0 (F)
ADC_AutoInjectedConvCmd 53 (P) 21 (P) 15 (P) 2 (P) 4 (F)
ADC_InjectedDiscModeCmd 53 (P) 23 (P) 17 (P) 2 (P) 4 (F)
           
ADC_ExternalTrigInjectedConvConfig 102 (P) 26 (P) 22 (P) 1 (P) 4 (F)
ADC_ExternalTrigInjectedConvCmd 53 (P) 23 (P) 17 (P) 2 (P) 4 (F)
ADC_SoftwareStartInjectedConvCmd 53 (P) 25 (P) 15 (P) 2 (P) 8 (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 43 (P) 23 (P) 12 (P) 2 (P) 9 (P)
ADC_InjectedChannelConfig 211 (F) 28 (P) 18 (P) 0 (F) 10 (P)
ADC_InjectedSequencerLengthConfig 46 (P) 26 (P) 15 (P) 2 (P) 9 (P)
ADC_SetInjectedOffset 58 (P) 26 (P) 22 (P) 2 (P) 2 (F)
ADC_GetInjectedConversionValue 56 (P) 23 (P) 20 (P) 2 (P) 2 (F)
ADC_AnalogWatchdogCmd 72 (P) 28 (P) 21 (P) 1 (P) 6 (P)
ADC_AnalogWatchdogThresholdsConfig 37 (P) 32 (P) 24 (P) 3 (P) 5 (P)
           
ADC_AnalogWatchdogSingleChannelConfig 127 (P) 24 (P) 20 (P) 1 (P) 3 (F)
ADC_TempSensorVrefintCmd 34 (P) 26 (P) 18 (P) 3 (P) 6 (P)
ADC_GetFlagStatus 70 (P) 24 (P) 17 (P) 1 (P) 6 (P)
ADC_ClearFlag 42 (P) 33 (P) 29 (P) 2 (P) 2 (F)
ADC_GetITStatus 66 (P) 26 (P) 15 (P) 2 (P) 9 (P)
ADC_ClearITPendingBit 43 (P) 30 (P) 23 (P) 2 (P) 5 (P)
           
Total for stm32f10x_adc.c 2646 (P) 98 (P) 89 2 (P) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (stm32f10x_adc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
ADC_DeInit 2 (P) 6 (P) 0 (P) 1 (P) Yes (P)
ADC_Init 0 (P) 29 (F) 0 (P) 1 (P) Yes (P)
ADC_StructInit 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
ADC_Cmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_DMACmd 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_ITConfig 1 (P) 6 (P) 0 (P) 1 (P) Yes (P)
ADC_ResetCalibration 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
ADC_GetResetCalibrationStatus 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_StartCalibration 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
ADC_GetCalibrationStatus 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
ADC_SoftwareStartConvCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_GetSoftwareStartConvStatus 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_DiscModeChannelCountConfig 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_DiscModeCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_RegularChannelConfig 3 (P) 31 (F) 0 (P) 1 (P) Yes (P)
ADC_ExternalTrigConvCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_GetConversionValue 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
ADC_GetDualModeConversionValue 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
ADC_AutoInjectedConvCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_InjectedDiscModeCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
           
ADC_ExternalTrigInjectedConvConfig 0 (P) 15 (F) 0 (P) 1 (P) Yes (P)
ADC_ExternalTrigInjectedConvCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_SoftwareStartInjectedConvCmd 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_InjectedChannelConfig 1 (P) 29 (F) 0 (P) 1 (P) Yes (P)
ADC_InjectedSequencerLengthConfig 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_SetInjectedOffset 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
ADC_GetInjectedConversionValue 0 (P) 6 (P) 0 (P) 1 (P) Yes (P)
ADC_AnalogWatchdogCmd 0 (P) 9 (P) 0 (P) 1 (P) Yes (P)
ADC_AnalogWatchdogThresholdsConfig 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
ADC_AnalogWatchdogSingleChannelConfig 0 (P) 20 (F) 0 (P) 1 (P) Yes (P)
ADC_TempSensorVrefintCmd 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
ADC_GetFlagStatus 1 (P) 8 (P) 0 (P) 1 (P) Yes (P)
ADC_ClearFlag 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
ADC_GetITStatus 1 (P) 7 (P) 0 (P) 1 (P) Yes (P)
ADC_ClearITPendingBit 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
Total for stm32f10x_adc.c 39 (P) 246 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (stm32f10x_adc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for stm32f10x_adc.c 2270 (F) 28445 (F) 27 (P) 746 (F) 773 (F) 30715 (F) 294689 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (stm32f10x_adc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
ADC_DeInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_StructInit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_Cmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_DMACmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ITConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ResetCalibration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetResetCalibrationStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_StartCalibration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetCalibrationStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
ADC_SoftwareStartConvCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetSoftwareStartConvStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_DiscModeChannelCountConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_DiscModeCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_RegularChannelConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ExternalTrigConvCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetConversionValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetDualModeConversionValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_AutoInjectedConvCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_InjectedDiscModeCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
ADC_ExternalTrigInjectedConvConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ExternalTrigInjectedConvCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_SoftwareStartInjectedConvCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_InjectedChannelConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_InjectedSequencerLengthConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_SetInjectedOffset 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetInjectedConversionValue 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_AnalogWatchdogCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_AnalogWatchdogThresholdsConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
ADC_AnalogWatchdogSingleChannelConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_TempSensorVrefintCmd 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetFlagStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ClearFlag 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_GetITStatus 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
ADC_ClearITPendingBit 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for stm32f10x_adc.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (stm32f10x_adc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for stm32f10x_adc.c 707 (P) 705 (P) 2 (P) 80 (F) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (stm32f10x_adc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
ADC_DeInit 0 (P) 0 (P) 2 (P)
ADC_Init 0 (P) 0 (P) 1 (P)
ADC_StructInit 0 (P) 0 (P) 0 (P)
ADC_Cmd 0 (P) 0 (P) 1 (P)
ADC_DMACmd 0 (P) 0 (P) 1 (P)
ADC_ITConfig 0 (P) 0 (P) 1 (P)
ADC_ResetCalibration 0 (P) 0 (P) 1 (P)
ADC_GetResetCalibrationStatus 0 (P) 0 (P) 1 (P)
ADC_StartCalibration 0 (P) 0 (P) 1 (P)
ADC_GetCalibrationStatus 0 (P) 0 (P) 1 (P)
       
ADC_SoftwareStartConvCmd 0 (P) 0 (P) 1 (P)
ADC_GetSoftwareStartConvStatus 0 (P) 0 (P) 1 (P)
ADC_DiscModeChannelCountConfig 0 (P) 0 (P) 1 (P)
ADC_DiscModeCmd 0 (P) 0 (P) 1 (P)
ADC_RegularChannelConfig 0 (P) 0 (P) 1 (P)
ADC_ExternalTrigConvCmd 0 (P) 0 (P) 1 (P)
ADC_GetConversionValue 0 (P) 0 (P) 1 (P)
ADC_GetDualModeConversionValue 0 (P) 0 (P) 0 (P)
ADC_AutoInjectedConvCmd 0 (P) 0 (P) 1 (P)
ADC_InjectedDiscModeCmd 0 (P) 0 (P) 1 (P)
       
ADC_ExternalTrigInjectedConvConfig 0 (P) 0 (P) 1 (P)
ADC_ExternalTrigInjectedConvCmd 0 (P) 0 (P) 1 (P)
ADC_SoftwareStartInjectedConvCmd 0 (P) 0 (P) 1 (P)
ADC_GetSoftwareStartInjectedConvCmdStatus 0 (P) 0 (P) 1 (P)
ADC_InjectedChannelConfig 0 (P) 0 (P) 1 (P)
ADC_InjectedSequencerLengthConfig 0 (P) 0 (P) 1 (P)
ADC_SetInjectedOffset 0 (P) 0 (P) 1 (P)
ADC_GetInjectedConversionValue 0 (P) 0 (P) 1 (P)
ADC_AnalogWatchdogCmd 0 (P) 0 (P) 1 (P)
ADC_AnalogWatchdogThresholdsConfig 0 (P) 0 (P) 1 (P)
       
ADC_AnalogWatchdogSingleChannelConfig 0 (P) 0 (P) 1 (P)
ADC_TempSensorVrefintCmd 0 (P) 0 (P) 1 (P)
ADC_GetFlagStatus 0 (P) 0 (P) 1 (P)
ADC_ClearFlag 0 (P) 0 (P) 1 (P)
ADC_GetITStatus 0 (P) 0 (P) 1 (P)
ADC_ClearITPendingBit 0 (P) 0 (P) 1 (P)
       
Total for stm32f10x_adc.c 2 (P) 1 (P) 37 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



remote.c


Reformatted Code Information for File (remote.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for remote.c 162 (P) 50 (P) (31%) 96 (P) (59%) 16 (P) (10%) 2 (P) 113 (P) 1.43 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (remote.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
Remote_Init 42 (P) 1 (P) 42.00 (F) 1 (P) 1 (P)
DMA1_Channel6_IRQHandler 54 (P) 13 (P) 4.15 (P) 1 (P) 1 (P)
           
Total for remote.c 96 (P) 14 (P) 6.86 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (remote.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
Remote_Init 30 (P) 6 (P) (20%) 1 (P) (3%) 23 (P) (77%) 0 (P)
DMA1_Channel6_IRQHandler 20 (P) 6 (P) (30%) 0 (P) (0%) 14 (P) (70%) 0 (P)
           
Total for remote.c 50 (P) 12 (P) (24%) 1 (P) (2%) 37 (P) (74%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (remote.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
Remote_Init 42 (P) 71 (P) 14 (P) 2 (P) 55 (P)
DMA1_Channel6_IRQHandler 54 (P) 37 (P) 11 (P) 0 (F) 26 (P)
           
Total for remote.c 96 (P) 52 (P) 13 1 (P) 39 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (remote.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
Remote_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DMA1_Channel6_IRQHandler 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)
           
Total for remote.c 0 (P) 7 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (remote.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for remote.c 93 (P) 155 (P) 17 (P) 43 (P) 60 (P) 248 (P) 1464 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (remote.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
Remote_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DMA1_Channel6_IRQHandler 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for remote.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (remote.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for remote.c 22 (P) 22 (P) 0 (P) 12 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (remote.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
Remote_Init 1 (P) 0 (P) 13 (F)
DMA1_Channel6_IRQHandler 21 (P) 0 (P) 3 (P)
       
Total for remote.c 22 (P) 0 (P) 16 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



oled.c


Reformatted Code Information for File (oled.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for oled.c 875 (P) 175 (P) (20%) 594 (P) (68%) 106 (P) (12%) 19 (P) 425 (P) 2.06 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (oled.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
SPI2_Init 24 (P) 1 (P) 24.00 (F) 1 (P) 1 (P)
SPI2_ReadWriteByte 35 (P) 13 (P) 2.69 (P) 1 (P) 3 (F)
OLED_WR_Byte 19 (P) 4 (P) 4.75 (P) 1 (P) 1 (P)
OLED_Refresh_Gram 34 (P) 9 (P) 3.78 (P) 1 (P) 1 (P)
OLED_Display_On 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
OLED_Display_Off 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
OLED_Clear 25 (P) 9 (P) 2.78 (P) 1 (P) 1 (P)
LCD_Set_Pos 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
OLED_DrawPoint 33 (P) 9 (P) 3.67 (P) 1 (P) 2 (F)
OLED_Fill 25 (P) 9 (P) 2.78 (P) 1 (P) 1 (P)
           
OLED_ShowChar 60 (P) 18 (P) 3.33 (P) 1 (P) 1 (P)
OLED_ShowCHinese 75 (P) 26 (P) 2.88 (P) 1 (P) 1 (P)
oled_pow 10 (P) 4 (P) 2.50 (P) 1 (P) 1 (P)
OLED_ShowNum 43 (P) 13 (P) 3.31 (P) 1 (P) 1 (P)
OLED_ShowString 30 (P) 8 (P) 3.75 (P) 1 (P) 1 (P)
OLED_DispPolarity 46 (P) 10 (P) 4.60 (P) 1 (P) 1 (P)
OLED_DispInt 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
OLED_DispFloat 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
OLED_Init 86 (P) 1 (P) 86.00 (F) 1 (P) 1 (P)
           
Total for oled.c 594 (P) 139 (P) 4.27 (P) 1 (P) 4 (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (oled.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
SPI2_Init 22 (P) 6 (P) (27%) 1 (P) (5%) 15 (P) (68%) 0 (P)
SPI2_ReadWriteByte 10 (P) 6 (P) (60%) 0 (P) (0%) 4 (P) (40%) 0 (P)
OLED_WR_Byte 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
OLED_Refresh_Gram 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
OLED_Display_On 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
OLED_Display_Off 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
OLED_Clear 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
LCD_Set_Pos 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_DrawPoint 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 0 (P)
OLED_Fill 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
           
OLED_ShowChar 10 (P) 7 (P) (70%) 0 (P) (0%) 3 (P) (30%) 0 (P)
OLED_ShowCHinese 8 (F) 6 (P) (75%) 1 (P) (13%) 1 (P) (13%) 0 (P)
oled_pow 1 (F) 1 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_ShowNum 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_ShowString 4 (F) 4 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_DispPolarity 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
OLED_DispInt 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_DispFloat 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
OLED_Init 31 (P) 1 (F) (3%) 0 (P) (0%) 30 (P) (97%) 0 (P)
           
Total for oled.c 175 (F) 103 (P) (59%) 2 (P) (1%) 70 (P) (40%) 0 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (oled.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
SPI2_Init 24 (P) 92 (P) 25 (P) 4 (P) 63 (P)
SPI2_ReadWriteByte 35 (P) 29 (P) 17 (P) 0 (F) 11 (P)
OLED_WR_Byte 19 (P) 47 (P) 32 (P) 0 (F) 16 (P)
OLED_Refresh_Gram 34 (P) 26 (P) 18 (P) 0 (F) 9 (P)
OLED_Display_On 11 (P) 82 (P) 55 (P) 0 (F) 27 (P)
OLED_Display_Off 11 (P) 82 (P) 55 (P) 0 (F) 27 (P)
OLED_Clear 25 (P) 28 (P) 24 (P) 0 (F) 4 (F)
LCD_Set_Pos 13 (P) 46 (P) 46 (P) 0 (F) 0 (F)
OLED_DrawPoint 33 (P) 24 (P) 18 (P) 0 (F) 6 (P)
OLED_Fill 25 (P) 28 (P) 24 (P) 0 (F) 4 (F)
           
OLED_ShowChar 60 (P) 17 (P) 12 (P) 0 (F) 5 (P)
OLED_ShowCHinese 75 (P) 11 (P) 8 (P) 1 (P) 1 (F)
oled_pow 10 (P) 10 (P) 10 (P) 0 (F) 0 (F)
OLED_ShowNum 43 (P) 14 (P) 14 (P) 0 (F) 0 (F)
OLED_ShowString 30 (P) 13 (P) 13 (P) 0 (F) 0 (F)
OLED_DispPolarity 46 (P) 15 (P) 13 (P) 0 (F) 2 (F)
OLED_DispInt 7 (P) 86 (P) 86 (P) 0 (F) 0 (F)
OLED_DispFloat 7 (P) 86 (P) 86 (P) 0 (F) 0 (F)
OLED_Init 86 (P) 36 (P) 1 (P) 0 (F) 35 (P)
           
Total for oled.c 594 (P) 29 (P) 17 0 (F) 12 (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (oled.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
SPI2_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SPI2_ReadWriteByte 8 (F) 5 (P) 8 (F) 5 (F) No (F)
OLED_WR_Byte 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
OLED_Refresh_Gram 8 (F) 3 (P) 0 (P) 1 (P) Yes (P)
OLED_Display_On 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
OLED_Display_Off 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
OLED_Clear 8 (F) 3 (P) 0 (P) 1 (P) Yes (P)
LCD_Set_Pos 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
OLED_DrawPoint 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
OLED_Fill 8 (F) 3 (P) 0 (P) 1 (P) Yes (P)
           
OLED_ShowChar 12 (F) 6 (P) 4 (F) 4 (F) No (F)
OLED_ShowCHinese 15 (F) 9 (P) 8 (F) 7 (F) No (F)
oled_pow 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
OLED_ShowNum 9 (F) 5 (P) 6 (F) 4 (F) No (F)
OLED_ShowString 1 (P) 4 (P) 0 (P) 1 (P) Yes (P)
OLED_DispPolarity 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
OLED_DispInt 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
OLED_DispFloat 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
OLED_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for oled.c 76 (P) 39 (P) 26 (P) 17 (P) No (F)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (oled.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for oled.c 257 (P) 465 (P) 33 (P) 80 (P) 113 (P) 722 (P) 4924 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (oled.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
SPI2_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SPI2_ReadWriteByte 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
OLED_WR_Byte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_Refresh_Gram 2 (P) 2 (P) 3 (P) 3 (P) Yes (P)
OLED_Display_On 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_Display_Off 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_Clear 2 (P) 2 (P) 3 (P) 3 (P) Yes (P)
LCD_Set_Pos 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_DrawPoint 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_Fill 2 (P) 2 (P) 3 (P) 3 (P) Yes (P)
           
OLED_ShowChar 2 (P) 2 (P) 3 (P) 3 (P) Yes (P)
OLED_ShowCHinese 4 (P) 3 (F) 5 (P) 4 (F) Yes (P)
oled_pow 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
OLED_ShowNum 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
OLED_ShowString 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
OLED_DispPolarity 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
OLED_DispInt 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_DispFloat 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
OLED_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for oled.c 18 (P) 3 (P) 20 (P) 4 (F) Yes (P)
           

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (oled.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for oled.c 299 (P) 293 (P) 6 (P) 39 (P) 0 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (oled.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
SPI2_Init 0 (P) 1 (P) 6 (F)
SPI2_ReadWriteByte 0 (P) 1 (P) 0 (P)
OLED_WR_Byte 0 (P) 6 (F) 5 (P)
OLED_Refresh_Gram 1 (P) 1 (P) 1 (P)
OLED_Display_On 0 (P) 0 (P) 1 (P)
OLED_Display_Off 0 (P) 0 (P) 1 (P)
OLED_Clear 1 (P) 2 (P) 1 (P)
LCD_Set_Pos 0 (P) 1 (P) 1 (P)
OLED_DrawPoint 1 (P) 3 (P) 2 (P)
OLED_Fill 1 (P) 0 (P) 1 (P)
       
OLED_ShowChar 1 (P) 2 (P) 1 (P)
OLED_ShowCHinese 1 (P) 0 (P) 1 (P)
oled_pow 0 (P) 1 (P) 0 (P)
OLED_ShowNum 1 (P) 1 (P) 2 (P)
OLED_ShowString 1 (P) 3 (P) 2 (P)
OLED_DispPolarity 1 (P) 0 (P) 3 (P)
OLED_DispInt 1 (P) 0 (P) 2 (P)
OLED_DispFloat 1 (P) 0 (P) 2 (P)
OLED_Init 1 (P) 0 (P) 5 (P)
       
Total for oled.c 12 (P) 22 (P) 37 (P)
       

[ Top of Report | Key to Terms | Metric Table | Contents ]



mpu6050.c


Reformatted Code Information for File (mpu6050.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for mpu6050.c 479 (P) 110 (P) (23%) 329 (P) (69%) 40 (P) (8%) 12 (P) 235 (P) 2.04 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (mpu6050.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
MPU6050_Init 55 (P) 5 (P) 11.00 (F) 1 (P) 2 (F)
MPU_Set_Gyro_Fsr 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
MPU_Set_Accel_Fsr 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
MPU_Set_LPF 58 (P) 16 (P) 3.62 (P) 1 (P) 1 (P)
MPU_Set_Rate 27 (P) 5 (P) 5.40 (P) 1 (P) 1 (P)
MPU_Get_Temperature 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
MPU_Get_Gyroscope 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
MPU_Get_Accelerometer 19 (P) 3 (P) 6.33 (F) 1 (P) 1 (P)
MPU_Write_Len 39 (P) 11 (P) 3.55 (P) 1 (P) 3 (F)
MPU_Read_Len 42 (P) 10 (P) 4.20 (P) 1 (P) 2 (F)
           
MPU_Write_Byte 29 (P) 7 (P) 4.14 (P) 1 (P) 3 (F)
MPU_Read_Byte 16 (P) 1 (P) 16.00 (F) 1 (P) 1 (P)
           
Total for mpu6050.c 329 (P) 64 (P) 5.14 (P) 1 (P) 7 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (mpu6050.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
MPU6050_Init 29 (P) 15 (P) (52%) 0 (P) (0%) 14 (P) (48%) 0 (P)
MPU_Set_Gyro_Fsr 5 (F) 4 (F) (80%) 0 (P) (0%) 1 (P) (20%) 0 (P)
MPU_Set_Accel_Fsr 5 (F) 4 (F) (80%) 0 (P) (0%) 1 (P) (20%) 0 (P)
MPU_Set_LPF 5 (F) 4 (F) (80%) 0 (P) (0%) 1 (P) (20%) 0 (P)
MPU_Set_Rate 6 (F) 4 (F) (67%) 0 (P) (0%) 2 (P) (33%) 0 (P)
MPU_Get_Temperature 2 (F) 2 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
MPU_Get_Gyroscope 4 (F) 4 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
MPU_Get_Accelerometer 4 (F) 4 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
MPU_Write_Len 13 (P) 7 (P) (54%) 0 (P) (0%) 6 (P) (46%) 0 (P)
MPU_Read_Len 16 (P) 7 (P) (44%) 0 (P) (0%) 9 (P) (56%) 0 (P)
           
MPU_Write_Byte 11 (P) 5 (P) (45%) 0 (P) (0%) 6 (P) (55%) 0 (P)
MPU_Read_Byte 10 (P) 2 (F) (20%) 0 (P) (0%) 8 (P) (80%) 0 (P)
           
Total for mpu6050.c 110 (F) 62 (P) (56%) 0 (P) (0%) 48 (P) (44%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (mpu6050.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
MPU6050_Init 55 (P) 53 (P) 27 (P) 0 (F) 25 (P)
MPU_Set_Gyro_Fsr 7 (P) 71 (P) 57 (P) 0 (F) 14 (P)
MPU_Set_Accel_Fsr 7 (P) 71 (P) 57 (P) 0 (F) 14 (P)
MPU_Set_LPF 58 (P) 9 (F) 7 (P) 0 (F) 2 (F)
MPU_Set_Rate 27 (P) 22 (P) 15 (P) 0 (F) 7 (P)
MPU_Get_Temperature 11 (P) 18 (P) 18 (P) 0 (F) 0 (F)
MPU_Get_Gyroscope 19 (P) 21 (P) 21 (P) 0 (F) 0 (F)
MPU_Get_Accelerometer 19 (P) 21 (P) 21 (P) 0 (F) 0 (F)
MPU_Write_Len 39 (P) 33 (P) 18 (P) 0 (F) 15 (P)
MPU_Read_Len 42 (P) 38 (P) 17 (P) 0 (F) 21 (P)
           
MPU_Write_Byte 29 (P) 38 (P) 17 (P) 0 (F) 21 (P)
MPU_Read_Byte 16 (P) 63 (P) 13 (P) 0 (F) 50 (P)
           
Total for mpu6050.c 329 (P) 33 (P) 19 0 (F) 15 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (mpu6050.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
MPU6050_Init 2 (P) 2 (P) 0 (P) 1 (P) Yes (P)
MPU_Set_Gyro_Fsr 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MPU_Set_Accel_Fsr 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MPU_Set_LPF 5 (P) 6 (P) 0 (P) 1 (P) Yes (P)
MPU_Set_Rate 0 (P) 3 (P) 0 (P) 1 (P) Yes (P)
MPU_Get_Temperature 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MPU_Get_Gyroscope 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
MPU_Get_Accelerometer 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
MPU_Write_Len 8 (F) 4 (P) 5 (F) 4 (F) No (F)
MPU_Read_Len 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
           
MPU_Write_Byte 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
MPU_Read_Byte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for mpu6050.c 20 (P) 19 (P) 5 (P) 4 (P) No (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (mpu6050.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for mpu6050.c 152 (P) 202 (P) 19 (P) 60 (P) 79 (P) 354 (P) 2231 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (mpu6050.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
MPU6050_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Set_Gyro_Fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Set_Accel_Fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Set_LPF 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Set_Rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Get_Temperature 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Get_Gyroscope 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Get_Accelerometer 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Write_Len 1 (P) 1 (P) 3 (P) 2 (P) Yes (P)
MPU_Read_Len 1 (P) 1 (P) 3 (P) 2 (P) Yes (P)
           
MPU_Write_Byte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MPU_Read_Byte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for mpu6050.c 2 (P) 1 (P) 5 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (mpu6050.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for mpu6050.c 122 (P) 122 (P) 0 (P) 13 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (mpu6050.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
MPU6050_Init 0 (P) 0 (P) 7 (F)
MPU_Set_Gyro_Fsr 0 (P) 1 (P) 1 (P)
MPU_Set_Accel_Fsr 0 (P) 1 (P) 1 (P)
MPU_Set_LPF 0 (P) 1 (P) 1 (P)
MPU_Set_Rate 0 (P) 1 (P) 2 (P)
MPU_Get_Temperature 0 (P) 0 (P) 1 (P)
MPU_Get_Gyroscope 0 (P) 0 (P) 1 (P)
MPU_Get_Accelerometer 0 (P) 0 (P) 1 (P)
MPU_Write_Len 0 (P) 0 (P) 4 (P)
MPU_Read_Len 0 (P) 3 (P) 5 (P)
       
MPU_Write_Byte 0 (P) 5 (P) 4 (P)
MPU_Read_Byte 0 (P) 1 (P) 5 (P)
       
Total for mpu6050.c 0 (P) 13 (P) 33 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



motor.c


Reformatted Code Information for File (motor.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for motor.c 195 (P) 74 (P) (38%) 93 (P) (48%) 28 (P) (14%) 8 (P) 158 (P) 1.23 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (motor.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM3_GPIO_configuration 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
TIM3_Mode_configuration 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
TIM3_PWM_configuration 14 (P) 1 (P) 14.00 (F) 1 (P) 1 (P)
DIRECT_GPIO_Config 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
MOTOR_configuration 10 (P) 1 (P) 10.00 (F) 1 (P) 1 (P)
MOTOR_SetFrenquency 5 (P) 1 (P) 5.00 (P) 1 (P) 1 (P)
MOTOR2_Rotation 17 (P) 4 (P) 4.25 (P) 1 (P) 1 (P)
MOTOR4_Rotation 17 (P) 4 (P) 4.25 (P) 1 (P) 1 (P)
           
Total for motor.c 93 (P) 14 (P) 6.64 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (motor.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM3_GPIO_configuration 10 (P) 6 (P) (60%) 0 (P) (0%) 4 (P) (40%) 0 (P)
TIM3_Mode_configuration 15 (P) 6 (P) (40%) 0 (P) (0%) 9 (P) (60%) 0 (P)
TIM3_PWM_configuration 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
DIRECT_GPIO_Config 14 (P) 6 (P) (43%) 0 (P) (0%) 8 (P) (57%) 0 (P)
MOTOR_configuration 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
MOTOR_SetFrenquency 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
MOTOR2_Rotation 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 0 (P)
MOTOR4_Rotation 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 0 (P)
           
Total for motor.c 74 (F) 48 (P) (65%) 0 (P) (0%) 26 (P) (35%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (motor.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM3_GPIO_configuration 7 (P) 143 (P) 86 (P) 0 (F) 57 (P)
TIM3_Mode_configuration 11 (P) 136 (P) 55 (P) 0 (F) 82 (P)
TIM3_PWM_configuration 14 (P) 50 (P) 43 (P) 0 (F) 7 (P)
DIRECT_GPIO_Config 12 (P) 117 (P) 50 (P) 0 (F) 67 (P)
MOTOR_configuration 10 (P) 60 (P) 60 (P) 0 (F) 0 (F)
MOTOR_SetFrenquency 5 (P) 120 (P) 120 (P) 0 (F) 0 (F)
MOTOR2_Rotation 17 (P) 47 (P) 35 (P) 0 (F) 12 (P)
MOTOR4_Rotation 17 (P) 47 (P) 35 (P) 0 (F) 12 (P)
           
Total for motor.c 93 (P) 80 (P) 52 0 (F) 28 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (motor.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM3_GPIO_configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM3_Mode_configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM3_PWM_configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
DIRECT_GPIO_Config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MOTOR_configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MOTOR_SetFrenquency 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MOTOR2_Rotation 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
MOTOR4_Rotation 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
           
Total for motor.c 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (motor.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for motor.c 41 (P) 136 (P) 8 (P) 48 (P) 56 (P) 177 (P) 1027 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (motor.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM3_GPIO_configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM3_Mode_configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM3_PWM_configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
DIRECT_GPIO_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MOTOR_configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MOTOR_SetFrenquency 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MOTOR2_Rotation 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MOTOR4_Rotation 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for motor.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (motor.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for motor.c 18 (P) 18 (P) 0 (P) 2 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (motor.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM3_GPIO_configuration 0 (P) 1 (P) 2 (P)
TIM3_Mode_configuration 0 (P) 1 (P) 4 (P)
TIM3_PWM_configuration 0 (P) 1 (P) 4 (P)
DIRECT_GPIO_Config 0 (P) 1 (P) 2 (P)
MOTOR_configuration 0 (P) 0 (P) 4 (P)
MOTOR_SetFrenquency 1 (P) 0 (P) 1 (P)
MOTOR2_Rotation 0 (P) 0 (P) 4 (P)
MOTOR4_Rotation 0 (P) 0 (P) 4 (P)
       
Total for motor.c 1 (P) 4 (P) 25 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



misc.c


Reformatted Code Information for File (misc.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for misc.c 8138 (F) 1802 (F) (22%) 464 (P) (6%) 5872 (F) (72%) 22 (P) 10696 (F) 0.76 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (misc.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
NVIC_PriorityGroupConfig 34 (P) 6 (P) 5.67 (P) 1 (P) 1 (P)
NVIC_Init 47 (P) 6 (P) 7.83 (F) 1 (P) 1 (P)
NVIC_SetVectorTable 21 (P) 3 (P) 7.00 (F) 1 (P) 1 (P)
NVIC_SystemLPConfig 46 (P) 9 (P) 5.11 (P) 1 (P) 1 (P)
SysTick_CLKSourceConfig 33 (P) 6 (P) 5.50 (P) 1 (P) 1 (P)
           
Total for misc.c 464 (P) 94 (P) 4.94 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (misc.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
NVIC_PriorityGroupConfig 1054 (F) 1052 (F) (100%) 1 (P) (0%) 1 (P) (0%) 151 (F)
NVIC_Init 11 (P) 7 (P) (64%) 1 (P) (9%) 3 (P) (27%) 1 (P)
NVIC_SetVectorTable 11 (P) 10 (P) (91%) 1 (P) (9%) 0 (F) (0%) 1 (P)
NVIC_SystemLPConfig 11 (P) 10 (P) (91%) 1 (P) (9%) 0 (F) (0%) 1 (P)
SysTick_CLKSourceConfig 9 (F) 8 (P) (89%) 1 (P) (11%) 0 (F) (0%) 2 (P)
           
Total for misc.c 1792 (P) 1752 (F) (98%) 9 (P) (1%) 31 (P) (2%) 201 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (misc.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
NVIC_PriorityGroupConfig 34 (P) 3100 (F) 3094 (F) 3 (P) 3 (F)
NVIC_Init 47 (P) 23 (P) 15 (P) 2 (P) 6 (P)
NVIC_SetVectorTable 21 (P) 52 (P) 48 (P) 5 (P) 0 (F)
NVIC_SystemLPConfig 46 (P) 24 (P) 22 (P) 2 (P) 0 (F)
SysTick_CLKSourceConfig 33 (P) 27 (P) 24 (P) 3 (P) 0 (F)
           
Total for misc.c 464 (P) 386 (F) 378 2 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (misc.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
NVIC_PriorityGroupConfig 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
NVIC_Init 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
NVIC_SetVectorTable 0 (P) 2 (P) 0 (P) 1 (P) Yes (P)
NVIC_SystemLPConfig 1 (P) 5 (P) 0 (P) 1 (P) Yes (P)
SysTick_CLKSourceConfig 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for misc.c 19 (P) 30 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (misc.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for misc.c 753 (F) 25134 (F) 23 (P) 514 (F) 537 (F) 25887 (F) 234763 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (misc.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
NVIC_PriorityGroupConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
NVIC_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
NVIC_SetVectorTable 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
NVIC_SystemLPConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SysTick_CLKSourceConfig 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for misc.c 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (misc.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for misc.c 98 (P) 96 (P) 2 (P) 6 (P) 0 (P) 5 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (misc.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
NVIC_PriorityGroupConfig 0 (P) 0 (P) 1 (P)
NVIC_Init 0 (P) 0 (P) 1 (P)
NVIC_SetVectorTable 0 (P) 0 (P) 1 (P)
NVIC_SystemLPConfig 0 (P) 0 (P) 1 (P)
SysTick_CLKSourceConfig 0 (P) 0 (P) 1 (P)
       
Total for misc.c 2 (P) 1 (P) 7 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



main.c


Reformatted Code Information for File (main.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for main.c 7754 (F) 1557 (F) (20%) 359 (P) (5%) 5838 (F) (75%) 19 (P) 10354 (F) 0.75 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (main.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
main 54 (P) 9 (P) 6.00 (P) 1 (P) 1 (P)
MPU6050_DMP_Init 22 (P) 7 (P) 3.14 (P) 1 (P) 1 (P)
           
Total for main.c 359 (P) 80 (P) 4.49 (P) 1 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (main.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
main 896 (F) 890 (F) (99%) 0 (P) (0%) 6 (P) (1%) 116 (F)
MPU6050_DMP_Init 5 (F) 0 (F) (0%) 0 (P) (0%) 5 (P) (100%) 0 (P)
           
Total for main.c 1557 (P) 1515 (F) (97%) 4 (P) (0%) 38 (P) (2%) 159 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (main.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
main 54 (P) 1659 (F) 1648 (F) 0 (F) 11 (P)
MPU6050_DMP_Init 22 (P) 23 (P) 0 (P) 0 (F) 23 (P)
           
Total for main.c 359 (P) 434 (F) 422 1 (P) 11 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (main.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
main 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
MPU6050_DMP_Init 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for main.c 20 (P) 22 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (main.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for main.c 636 (P) 24912 (F) 24 (P) 514 (F) 538 (F) 25548 (F) 231757 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (main.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
main 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
MPU6050_DMP_Init 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)
           
Total for main.c 5 (P) 1 (P) 7 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (main.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for main.c 82 (P) 80 (P) 2 (P) 6 (P) 0 (P) 6 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (main.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
main 0 (P) 1 (P) 17 (F)
MPU6050_DMP_Init 0 (P) 1 (P) 6 (F)
       
Total for main.c 2 (P) 3 (P) 25 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



inv_mpu_dmp_motion_driver.c


Reformatted Code Information for File (inv_mpu_dmp_motion_driver.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for inv_mpu_dmp_motion_driver.c 1878 (P) 294 (P) (16%) 984 (P) (52%) 600 (P) (32%) 28 (P) 1382 (P) 1.36 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (inv_mpu_dmp_motion_driver.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
dmp_load_motion_driver_firmware 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
dmp_set_orientation 76 (P) 19 (P) 4.00 (P) 1 (P) 5 (F)
dmp_set_gyro_bias 81 (P) 13 (P) 6.23 (F) 1 (P) 3 (F)
dmp_set_accel_bias 62 (P) 7 (P) 8.86 (F) 1 (P) 1 (P)
dmp_set_fifo_rate 35 (P) 10 (P) 3.50 (P) 1 (P) 4 (F)
dmp_get_fifo_rate 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
dmp_set_tap_thresh 115 (P) 37 (F) 3.11 (P) 1 (P) 9 (F)
dmp_set_tap_axes 25 (P) 7 (P) 3.57 (P) 1 (P) 1 (P)
dmp_set_tap_count 22 (P) 6 (P) 3.67 (P) 1 (P) 1 (P)
dmp_set_tap_time 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
           
dmp_set_tap_time_multi 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
dmp_set_shake_reject_thresh 15 (P) 1 (P) 15.00 (F) 1 (P) 1 (P)
dmp_set_shake_reject_time 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
dmp_set_shake_reject_timeout 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
dmp_get_pedometer_step_count 24 (P) 7 (P) 3.43 (P) 1 (P) 3 (F)
dmp_set_pedometer_step_count 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
dmp_get_pedometer_walk_time 25 (P) 7 (P) 3.57 (P) 1 (P) 3 (F)
dmp_set_pedometer_walk_time 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
dmp_enable_feature 223 (F) 38 (F) 5.87 (P) 1 (P) 1 (P)
dmp_get_enabled_features 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
           
dmp_enable_gyro_cal 17 (P) 6 (P) 2.83 (P) 1 (P) 3 (F)
dmp_enable_lp_quat 19 (P) 4 (P) 4.75 (P) 1 (P) 1 (P)
dmp_enable_6x_lp_quat 19 (P) 4 (P) 4.75 (P) 1 (P) 1 (P)
decode_gesture 33 (P) 9 (P) 3.67 (P) 1 (P) 1 (P)
dmp_set_interrupt_mode 18 (P) 5 (P) 3.60 (P) 1 (P) 4 (F)
dmp_read_fifo 96 (P) 17 (P) 5.65 (P) 1 (P) 3 (F)
dmp_register_tap_cb 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
dmp_register_android_orient_cb 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
           
Total for inv_mpu_dmp_motion_driver.c 984 (P) 208 (P) 4.73 (P) 1 (P) 29 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (inv_mpu_dmp_motion_driver.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
dmp_load_motion_driver_firmware 57 (P) 57 (F) (100%) 0 (P) (0%) 0 (F) (0%) 5 (P)
dmp_set_orientation 9 (F) 7 (P) (78%) 0 (P) (0%) 2 (P) (22%) 1 (P)
dmp_set_gyro_bias 10 (P) 10 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_accel_bias 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 1 (P)
dmp_set_fifo_rate 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_get_fifo_rate 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_tap_thresh 10 (P) 6 (P) (60%) 0 (P) (0%) 4 (P) (40%) 1 (P)
dmp_set_tap_axes 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_tap_count 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_tap_time 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
dmp_set_tap_time_multi 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_shake_reject_thresh 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_shake_reject_time 8 (F) 8 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_shake_reject_timeout 8 (F) 8 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_get_pedometer_step_count 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_pedometer_step_count 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_get_pedometer_walk_time 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_pedometer_walk_time 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_enable_feature 25 (P) 17 (P) (68%) 4 (P) (16%) 4 (P) (16%) 2 (P)
dmp_get_enabled_features 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
dmp_enable_gyro_cal 9 (F) 9 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_enable_lp_quat 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_enable_6x_lp_quat 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
decode_gesture 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_set_interrupt_mode 9 (F) 9 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_read_fifo 37 (P) 20 (P) (54%) 3 (P) (8%) 14 (P) (38%) 4 (P)
dmp_register_tap_cb 12 (P) 12 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
dmp_register_android_orient_cb 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
Total for inv_mpu_dmp_motion_driver.c 291 (P) 259 (P) (89%) 7 (P) (2%) 25 (F) (9%) 36 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (inv_mpu_dmp_motion_driver.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
dmp_load_motion_driver_firmware 4 (P) 1425 (F) 1425 (F) 0 (F) 0 (F)
dmp_set_orientation 76 (P) 12 (P) 9 (P) 0 (F) 3 (F)
dmp_set_gyro_bias 81 (P) 12 (P) 12 (P) 0 (F) 0 (F)
dmp_set_accel_bias 62 (P) 11 (P) 10 (P) 0 (F) 2 (F)
dmp_set_fifo_rate 35 (P) 17 (P) 17 (P) 0 (F) 0 (F)
dmp_get_fifo_rate 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
dmp_set_tap_thresh 115 (P) 9 (F) 5 (P) 0 (F) 3 (F)
dmp_set_tap_axes 25 (P) 20 (P) 20 (P) 0 (F) 0 (F)
dmp_set_tap_count 22 (P) 23 (P) 23 (P) 0 (F) 0 (F)
dmp_set_tap_time 8 (P) 63 (P) 63 (P) 0 (F) 0 (F)
           
dmp_set_tap_time_multi 9 (P) 56 (P) 56 (P) 0 (F) 0 (F)
dmp_set_shake_reject_thresh 15 (P) 47 (P) 47 (P) 0 (F) 0 (F)
dmp_set_shake_reject_time 9 (P) 89 (P) 89 (P) 0 (F) 0 (F)
dmp_set_shake_reject_timeout 9 (P) 89 (P) 89 (P) 0 (F) 0 (F)
dmp_get_pedometer_step_count 24 (P) 21 (P) 21 (P) 0 (F) 0 (F)
dmp_set_pedometer_step_count 11 (P) 64 (P) 64 (P) 0 (F) 0 (F)
dmp_get_pedometer_walk_time 25 (P) 20 (P) 20 (P) 0 (F) 0 (F)
dmp_set_pedometer_walk_time 13 (P) 46 (P) 46 (P) 0 (F) 0 (F)
dmp_enable_feature 223 (F) 11 (P) 8 (P) 2 (P) 2 (F)
dmp_get_enabled_features 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
           
dmp_enable_gyro_cal 17 (P) 53 (P) 53 (P) 0 (F) 0 (F)
dmp_enable_lp_quat 19 (P) 37 (P) 37 (P) 0 (F) 0 (F)
dmp_enable_6x_lp_quat 19 (P) 37 (P) 37 (P) 0 (F) 0 (F)
decode_gesture 33 (P) 15 (P) 15 (P) 0 (F) 0 (F)
dmp_set_interrupt_mode 18 (P) 50 (P) 50 (P) 0 (F) 0 (F)
dmp_read_fifo 96 (P) 39 (P) 21 (P) 3 (P) 15 (P)
dmp_register_tap_cb 4 (P) 300 (F) 300 (P) 0 (F) 0 (F)
dmp_register_android_orient_cb 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
           
Total for inv_mpu_dmp_motion_driver.c 984 (P) 30 (P) 26 1 (P) 3 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (inv_mpu_dmp_motion_driver.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
dmp_load_motion_driver_firmware 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_set_orientation 4 (P) 8 (P) 0 (P) 1 (P) Yes (P)
dmp_set_gyro_bias 2 (P) 6 (P) 0 (P) 1 (P) Yes (P)
dmp_set_accel_bias 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
dmp_set_fifo_rate 3 (P) 4 (P) 0 (P) 1 (P) Yes (P)
dmp_get_fifo_rate 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_set_tap_thresh 27 (F) 16 (F) 27 (F) 15 (F) No (F)
dmp_set_tap_axes 0 (P) 4 (P) 0 (P) 1 (P) Yes (P)
dmp_set_tap_count 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
dmp_set_tap_time 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
dmp_set_tap_time_multi 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_set_shake_reject_thresh 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_set_shake_reject_time 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_set_shake_reject_timeout 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_get_pedometer_step_count 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
dmp_set_pedometer_step_count 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_get_pedometer_walk_time 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
dmp_set_pedometer_walk_time 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_enable_feature 9 (F) 15 (F) 0 (P) 1 (P) Yes (P)
dmp_get_enabled_features 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
dmp_enable_gyro_cal 3 (P) 2 (P) 0 (P) 1 (P) Yes (P)
dmp_enable_lp_quat 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
dmp_enable_6x_lp_quat 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
decode_gesture 0 (P) 5 (P) 0 (P) 1 (P) Yes (P)
dmp_set_interrupt_mode 3 (P) 3 (P) 0 (P) 1 (P) Yes (P)
dmp_read_fifo 3 (P) 8 (P) 3 (F) 4 (F) No (F)
dmp_register_tap_cb 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
dmp_register_android_orient_cb 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for inv_mpu_dmp_motion_driver.c 61 (P) 73 (P) 30 (P) 18 (P) No (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (inv_mpu_dmp_motion_driver.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for inv_mpu_dmp_motion_driver.c 801 (F) 1245 (P) 23 (P) 120 (P) 143 (P) 2046 (P) 14649 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (inv_mpu_dmp_motion_driver.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
dmp_load_motion_driver_firmware 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_orientation 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_gyro_bias 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_accel_bias 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_fifo_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_get_fifo_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_tap_thresh 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_tap_axes 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_tap_count 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_tap_time 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
dmp_set_tap_time_multi 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_shake_reject_thresh 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_shake_reject_time 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_shake_reject_timeout 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_get_pedometer_step_count 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_pedometer_step_count 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_get_pedometer_walk_time 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_pedometer_walk_time 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_enable_feature 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_get_enabled_features 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
dmp_enable_gyro_cal 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_enable_lp_quat 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_enable_6x_lp_quat 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
decode_gesture 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_set_interrupt_mode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_read_fifo 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_register_tap_cb 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
dmp_register_android_orient_cb 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for inv_mpu_dmp_motion_driver.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (inv_mpu_dmp_motion_driver.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for inv_mpu_dmp_motion_driver.c 262 (P) 260 (P) 2 (P) 12 (P) 0 (P) 4 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (inv_mpu_dmp_motion_driver.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
dmp_load_motion_driver_firmware 0 (P) 0 (P) 1 (P)
dmp_set_orientation 0 (P) 0 (P) 2 (P)
dmp_set_gyro_bias 0 (P) 0 (P) 1 (P)
dmp_set_accel_bias 0 (P) 0 (P) 2 (P)
dmp_set_fifo_rate 0 (P) 0 (P) 1 (P)
dmp_get_fifo_rate 0 (P) 0 (P) 0 (P)
dmp_set_tap_thresh 0 (P) 1 (P) 2 (P)
dmp_set_tap_axes 0 (P) 1 (P) 1 (P)
dmp_set_tap_count 0 (P) 1 (P) 1 (P)
dmp_set_tap_time 0 (P) 1 (P) 1 (P)
       
dmp_set_tap_time_multi 0 (P) 1 (P) 1 (P)
dmp_set_shake_reject_thresh 0 (P) 1 (P) 1 (P)
dmp_set_shake_reject_time 0 (P) 1 (P) 1 (P)
dmp_set_shake_reject_timeout 0 (P) 1 (P) 1 (P)
dmp_get_pedometer_step_count 0 (P) 0 (P) 1 (P)
dmp_set_pedometer_step_count 0 (P) 0 (P) 1 (P)
dmp_get_pedometer_walk_time 0 (P) 0 (P) 1 (P)
dmp_set_pedometer_walk_time 0 (P) 0 (P) 1 (P)
dmp_enable_feature 0 (P) 0 (P) 13 (F)
dmp_get_enabled_features 0 (P) 0 (P) 0 (P)
       
dmp_enable_gyro_cal 0 (P) 1 (P) 1 (P)
dmp_enable_lp_quat 0 (P) 1 (P) 3 (P)
dmp_enable_6x_lp_quat 0 (P) 1 (P) 3 (P)
decode_gesture 0 (P) 1 (P) 2 (P)
dmp_set_interrupt_mode 0 (P) 0 (P) 1 (P)
dmp_read_fifo 0 (P) 0 (P) 4 (P)
dmp_register_tap_cb 0 (P) 0 (P) 0 (P)
dmp_register_android_orient_cb 0 (P) 0 (P) 0 (P)
       
Total for inv_mpu_dmp_motion_driver.c 0 (P) 12 (P) 47 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



inv_mpu.c


Reformatted Code Information for File (inv_mpu.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for inv_mpu.c 4379 (F) 695 (P) (16%) 2979 (F) (68%) 705 (P) (16%) 52 (F) 3016 (P) 1.45 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (inv_mpu.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
set_int_enable 70 (P) 24 (P) 2.92 (P) 1 (P) 5 (F)
mpu_reg_dump 31 (P) 13 (P) 2.38 (P) 1 (P) 2 (F)
mpu_read_reg 21 (P) 9 (P) 2.33 (P) 1 (P) 3 (F)
mpu_init 172 (P) 48 (F) 3.58 (P) 1 (P) 13 (F)
mpu_lp_accel_mode 97 (P) 22 (P) 4.41 (P) 1 (P) 5 (F)
mpu_get_gyro_reg 31 (P) 9 (P) 3.44 (P) 1 (P) 3 (F)
mpu_get_accel_reg 31 (P) 9 (P) 3.44 (P) 1 (P) 3 (F)
mpu_get_temperature 33 (P) 9 (P) 3.67 (P) 1 (P) 3 (F)
mpu_set_accel_bias 74 (P) 19 (P) 3.89 (P) 1 (P) 6 (F)
mpu_reset_fifo 158 (P) 53 (F) 2.98 (P) 1 (P) 13 (F)
           
mpu_get_gyro_fsr 23 (P) 8 (P) 2.87 (P) 1 (P) 1 (P)
mpu_set_gyro_fsr 48 (P) 17 (P) 2.82 (P) 1 (P) 5 (F)
mpu_get_accel_fsr 30 (P) 10 (P) 3.00 (P) 1 (P) 2 (F)
mpu_set_accel_fsr 48 (P) 17 (P) 2.82 (P) 1 (P) 5 (F)
mpu_get_lpf 31 (P) 10 (P) 3.10 (P) 1 (P) 1 (P)
mpu_set_lpf 79 (P) 25 (P) 3.16 (P) 1 (P) 4 (F)
mpu_get_sample_rate 15 (P) 5 (P) 3.00 (P) 1 (P) 2 (F)
mpu_set_sample_rate 78 (P) 24 (P) 3.25 (P) 1 (P) 6 (F)
mpu_get_compass_sample_rate 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
mpu_set_compass_sample_rate 3 (P) 1 (P) 3.00 (P) 1 (P) 1 (P)
           
mpu_get_gyro_sens 23 (P) 8 (P) 2.87 (P) 1 (P) 2 (F)
mpu_get_accel_sens 30 (P) 10 (P) 3.00 (P) 1 (P) 2 (F)
mpu_get_fifo_config 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
mpu_configure_fifo 68 (P) 21 (P) 3.24 (P) 1 (P) 4 (F)
mpu_get_power_state 14 (P) 4 (P) 3.50 (P) 1 (P) 1 (P)
mpu_set_sensors 88 (P) 25 (P) 3.52 (P) 1 (P) 3 (F)
mpu_get_int_status 20 (P) 7 (P) 2.86 (P) 1 (P) 3 (F)
mpu_read_fifo 165 (P) 51 (F) 3.24 (P) 1 (P) 9 (F)
mpu_read_fifo_stream 71 (P) 24 (P) 2.96 (P) 1 (P) 8 (F)
mpu_set_bypass 116 (P) 37 (F) 3.14 (P) 1 (P) 8 (F)
           
mpu_set_int_level 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
mpu_set_int_latched 45 (P) 14 (P) 3.21 (P) 1 (P) 3 (F)
get_accel_prod_shift 45 (P) 14 (P) 3.21 (P) 1 (P) 2 (F)
accel_self_test 48 (P) 14 (P) 3.43 (P) 1 (P) 1 (P)
gyro_self_test 65 (P) 20 (P) 3.25 (P) 1 (P) 2 (F)
get_st_biases 249 (F) 64 (F) 3.89 (P) 1 (P) 17 (F)
mpu_run_self_test 143 (P) 30 (P) 4.77 (P) 1 (P) 1 (P)
mpu_write_mem 45 (P) 16 (P) 2.81 (P) 1 (P) 6 (F)
mpu_read_mem 45 (P) 16 (P) 2.81 (P) 1 (P) 6 (F)
mpu_load_firmware 77 (P) 26 (P) 2.96 (P) 1 (P) 7 (F)
           
mpu_set_dmp_state 53 (P) 10 (P) 5.30 (P) 1 (P) 3 (F)
mpu_get_dmp_state 4 (P) 1 (P) 4.00 (P) 1 (P) 1 (P)
setup_compass 3 (P) 1 (P) 3.00 (P) 1 (P) 1 (P)
mpu_get_compass_reg 3 (P) 1 (P) 3.00 (P) 1 (P) 1 (P)
mpu_get_compass_fsr 3 (P) 1 (P) 3.00 (P) 1 (P) 1 (P)

Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
mpu_lp_motion_interrupt 224 (F) 55 (F) 4.07 (P) 1 (P) 5 (F)
run_self_test 33 (P) 6 (P) 5.50 (P) 1 (P) 3 (F)
inv_orientation_matrix_to_scalar 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
inv_row_2_scale 64 (P) 19 (P) 3.37 (P) 1 (P) 1 (P)
mget_ms 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
           
mpu_dmp_init 104 (P) 30 (P) 3.47 (P) 1 (P) 10 (F)
mpu_dmp_get_data 32 (P) 8 (P) 4.00 (P) 1 (P) 3 (F)
           
Total for inv_mpu.c 2979 (P) 870 (P) 3.42 (P) 1 (P) 151 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (inv_mpu.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
set_int_enable 221 (F) 221 (F) (100%) 0 (P) (0%) 0 (F) (0%) 8 (P)
mpu_reg_dump 4 (F) 4 (F) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_read_reg 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_init 23 (P) 13 (P) (57%) 1 (P) (4%) 9 (P) (39%) 1 (P)
mpu_lp_accel_mode 22 (P) 15 (P) (68%) 0 (P) (0%) 7 (P) (32%) 2 (P)
mpu_get_gyro_reg 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_accel_reg 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_temperature 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_accel_bias 7 (F) 7 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_reset_fifo 4 (F) 4 (F) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
mpu_get_gyro_fsr 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_gyro_fsr 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_accel_fsr 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_accel_fsr 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_lpf 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_lpf 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_sample_rate 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_sample_rate 11 (P) 6 (P) (55%) 0 (P) (0%) 5 (P) (45%) 2 (P)
mpu_get_compass_sample_rate 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_compass_sample_rate 11 (P) 11 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
           
mpu_get_gyro_sens 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_accel_sens 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_fifo_config 9 (F) 9 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_configure_fifo 13 (P) 9 (P) (69%) 1 (P) (8%) 3 (P) (23%) 2 (P)
mpu_get_power_state 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_sensors 11 (P) 10 (P) (91%) 0 (P) (0%) 1 (P) (9%) 1 (P)
mpu_get_int_status 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_read_fifo 21 (P) 18 (P) (86%) 1 (P) (5%) 2 (P) (10%) 1 (P)
mpu_read_fifo_stream 8 (F) 7 (P) (88%) 0 (P) (0%) 1 (P) (13%) 1 (P)
mpu_set_bypass 6 (F) 5 (P) (83%) 0 (P) (0%) 1 (P) (17%) 1 (P)
           
mpu_set_int_level 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_set_int_latched 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
get_accel_prod_shift 3 (F) 0 (F) (0%) 0 (P) (0%) 3 (P) (100%) 1 (P)
accel_self_test 0 (F) 0 (F) (0%) 0 (P) (0%) 0 (F) (0%) 0 (P)
gyro_self_test 0 (F) 0 (F) (0%) 0 (P) (0%) 0 (F) (0%) 0 (P)
get_st_biases 2 (F) 0 (F) (0%) 0 (P) (0%) 2 (P) (100%) 0 (P)
mpu_run_self_test 27 (P) 20 (P) (74%) 0 (P) (0%) 7 (P) (26%) 2 (P)
mpu_write_mem 10 (P) 9 (P) (90%) 0 (P) (0%) 1 (P) (10%) 1 (P)
mpu_read_mem 10 (P) 9 (P) (90%) 0 (P) (0%) 1 (P) (10%) 1 (P)
mpu_load_firmware 11 (P) 8 (P) (73%) 1 (P) (9%) 2 (P) (18%) 1 (P)
           
mpu_set_dmp_state 12 (P) 5 (P) (42%) 0 (P) (0%) 7 (P) (58%) 1 (P)
mpu_get_dmp_state 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
setup_compass 1 (F) 1 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
mpu_get_compass_reg 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)
mpu_get_compass_fsr 5 (F) 5 (P) (100%) 0 (P) (0%) 0 (F) (0%) 1 (P)

Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
mpu_lp_motion_interrupt 68 (P) 44 (P) (65%) 0 (P) (0%) 24 (P) (35%) 4 (P)
run_self_test 21 (P) 17 (P) (81%) 1 (P) (5%) 3 (P) (14%) 1 (P)
inv_orientation_matrix_to_scalar 8 (F) 1 (F) (13%) 7 (P) (88%) 0 (F) (0%) 1 (P)
inv_row_2_scale 2 (F) 1 (F) (50%) 0 (P) (0%) 1 (P) (50%) 0 (P)
mget_ms 1 (F) 1 (F) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
mpu_dmp_init 14 (P) 3 (F) (21%) 0 (P) (0%) 11 (P) (79%) 0 (P)
mpu_dmp_get_data 21 (P) 6 (P) (29%) 0 (P) (0%) 15 (P) (71%) 0 (P)
           
Total for inv_mpu.c 695 (P) 577 (P) (83%) 12 (P) (2%) 106 (P) (15%) 58 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (inv_mpu.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
set_int_enable 70 (P) 316 (F) 316 (P) 0 (F) 0 (F)
mpu_reg_dump 31 (P) 13 (P) 13 (P) 0 (F) 0 (F)
mpu_read_reg 21 (P) 33 (P) 33 (P) 0 (F) 0 (F)
mpu_init 172 (P) 13 (P) 8 (P) 1 (P) 5 (P)
mpu_lp_accel_mode 97 (P) 23 (P) 15 (P) 0 (F) 7 (P)
mpu_get_gyro_reg 31 (P) 19 (P) 19 (P) 0 (F) 0 (F)
mpu_get_accel_reg 31 (P) 19 (P) 19 (P) 0 (F) 0 (F)
mpu_get_temperature 33 (P) 18 (P) 18 (P) 0 (F) 0 (F)
mpu_set_accel_bias 74 (P) 9 (F) 9 (P) 0 (F) 0 (F)
mpu_reset_fifo 158 (P) 3 (F) 3 (P) 0 (F) 0 (F)
           
mpu_get_gyro_fsr 23 (P) 22 (P) 22 (P) 0 (F) 0 (F)
mpu_set_gyro_fsr 48 (P) 10 (P) 10 (P) 0 (F) 0 (F)
mpu_get_accel_fsr 30 (P) 17 (P) 17 (P) 0 (F) 0 (F)
mpu_set_accel_fsr 48 (P) 10 (P) 10 (P) 0 (F) 0 (F)
mpu_get_lpf 31 (P) 16 (P) 16 (P) 0 (F) 0 (F)
mpu_set_lpf 79 (P) 8 (F) 8 (P) 0 (F) 0 (F)
mpu_get_sample_rate 15 (P) 33 (P) 33 (P) 0 (F) 0 (F)
mpu_set_sample_rate 78 (P) 14 (P) 8 (P) 0 (F) 6 (P)
mpu_get_compass_sample_rate 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
mpu_set_compass_sample_rate 3 (P) 367 (F) 367 (P) 0 (F) 0 (F)
           
mpu_get_gyro_sens 23 (P) 22 (P) 22 (P) 0 (F) 0 (F)
mpu_get_accel_sens 30 (P) 17 (P) 17 (P) 0 (F) 0 (F)
mpu_get_fifo_config 4 (P) 225 (F) 225 (P) 0 (F) 0 (F)
mpu_configure_fifo 68 (P) 19 (P) 13 (P) 1 (P) 4 (F)
mpu_get_power_state 14 (P) 36 (P) 36 (P) 0 (F) 0 (F)
mpu_set_sensors 88 (P) 13 (P) 11 (P) 0 (F) 1 (F)
mpu_get_int_status 20 (P) 25 (P) 25 (P) 0 (F) 0 (F)
mpu_read_fifo 165 (P) 13 (P) 11 (P) 1 (P) 1 (F)
mpu_read_fifo_stream 71 (P) 11 (P) 10 (P) 0 (F) 1 (F)
mpu_set_bypass 116 (P) 5 (F) 4 (P) 0 (F) 1 (F)
           
mpu_set_int_level 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
mpu_set_int_latched 45 (P) 13 (P) 13 (P) 0 (F) 0 (F)
get_accel_prod_shift 45 (P) 7 (F) 0 (P) 0 (F) 7 (P)
accel_self_test 48 (P) 0 (F) 0 (P) 0 (F) 0 (F)
gyro_self_test 65 (P) 0 (F) 0 (P) 0 (F) 0 (F)
get_st_biases 249 (F) 1 (F) 0 (P) 0 (F) 1 (F)
mpu_run_self_test 143 (P) 19 (P) 14 (P) 0 (F) 5 (P)
mpu_write_mem 45 (P) 22 (P) 20 (P) 0 (F) 2 (F)
mpu_read_mem 45 (P) 22 (P) 20 (P) 0 (F) 2 (F)
mpu_load_firmware 77 (P) 14 (P) 10 (P) 1 (P) 3 (F)
           
mpu_set_dmp_state 53 (P) 23 (P) 9 (P) 0 (F) 13 (P)
mpu_get_dmp_state 4 (P) 125 (P) 125 (P) 0 (F) 0 (F)
setup_compass 3 (P) 33 (P) 33 (P) 0 (F) 0 (F)
mpu_get_compass_reg 3 (P) 200 (P) 200 (P) 0 (F) 0 (F)
mpu_get_compass_fsr 3 (P) 167 (P) 167 (P) 0 (F) 0 (F)

Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
mpu_lp_motion_interrupt 224 (F) 30 (P) 20 (P) 0 (F) 11 (P)
run_self_test 33 (P) 64 (P) 52 (P) 3 (P) 9 (P)
inv_orientation_matrix_to_scalar 12 (P) 67 (P) 8 (P) 58 (P) 0 (F)
inv_row_2_scale 64 (P) 3 (F) 2 (P) 0 (F) 2 (F)
mget_ms 2 (P) 50 (P) 50 (P) 0 (F) 0 (F)
           
mpu_dmp_init 104 (P) 13 (P) 3 (P) 0 (F) 11 (P)
mpu_dmp_get_data 32 (P) 66 (P) 19 (P) 0 (F) 47 (P)
           
Total for inv_mpu.c 2979 (P) 23 (P) 19 0 (F) 4 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (inv_mpu.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
set_int_enable 11 (F) 9 (P) 9 (F) 6 (F) No (F)
mpu_reg_dump 10 (F) 5 (P) 8 (F) 4 (F) No (F)
mpu_read_reg 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
mpu_init 21 (F) 16 (F) 13 (F) 9 (F) No (F)
mpu_lp_accel_mode 8 (F) 8 (P) 0 (P) 1 (P) Yes (P)
mpu_get_gyro_reg 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
mpu_get_accel_reg 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
mpu_get_temperature 2 (P) 4 (P) 0 (P) 1 (P) Yes (P)
mpu_set_accel_bias 5 (P) 8 (P) 0 (P) 1 (P) Yes (P)
mpu_reset_fifo 24 (F) 19 (F) 21 (F) 14 (F) No (F)
           
mpu_get_gyro_fsr 10 (F) 5 (P) 0 (P) 1 (P) Yes (P)
mpu_set_gyro_fsr 17 (F) 8 (P) 15 (F) 6 (F) No (F)
mpu_get_accel_fsr 14 (F) 6 (P) 14 (F) 5 (F) No (F)
mpu_set_accel_fsr 17 (F) 8 (P) 15 (F) 6 (F) No (F)
mpu_get_lpf 21 (F) 7 (P) 0 (P) 1 (P) Yes (P)
mpu_set_lpf 8 (F) 9 (P) 0 (P) 1 (P) Yes (P)
mpu_get_sample_rate 2 (P) 2 (P) 0 (P) 1 (P) Yes (P)
mpu_set_sample_rate 10 (F) 9 (P) 4 (F) 5 (F) No (F)
mpu_get_compass_sample_rate 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
mpu_set_compass_sample_rate 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
mpu_get_gyro_sens 14 (F) 5 (P) 14 (F) 5 (F) No (F)
mpu_get_accel_sens 14 (F) 6 (P) 14 (F) 5 (F) No (F)
mpu_get_fifo_config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
mpu_configure_fifo 9 (F) 8 (P) 4 (F) 5 (F) No (F)
mpu_get_power_state 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
mpu_set_sensors 4 (P) 11 (F) 0 (P) 1 (P) Yes (P)
mpu_get_int_status 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
mpu_read_fifo 10 (F) 22 (F) 9 (F) 9 (F) No (F)
mpu_read_fifo_stream 9 (F) 9 (P) 8 (F) 8 (F) No (F)
mpu_set_bypass 16 (F) 14 (F) 14 (F) 9 (F) No (F)
           
mpu_set_int_level 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
mpu_set_int_latched 3 (P) 6 (P) 0 (P) 1 (P) Yes (P)
get_accel_prod_shift 9 (F) 5 (P) 0 (P) 1 (P) Yes (P)
accel_self_test 5 (P) 6 (P) 0 (P) 1 (P) Yes (P)
gyro_self_test 7 (F) 8 (P) 0 (P) 1 (P) Yes (P)
get_st_biases 25 (F) 22 (F) 19 (F) 18 (F) No (F)
mpu_run_self_test 15 (F) 11 (F) 7 (F) 6 (F) No (F)
mpu_write_mem 5 (P) 6 (P) 0 (P) 1 (P) Yes (P)
mpu_read_mem 5 (P) 6 (P) 0 (P) 1 (P) Yes (P)
mpu_load_firmware 17 (F) 9 (P) 12 (F) 7 (F) No (F)
           
mpu_set_dmp_state 4 (P) 4 (P) 4 (F) 4 (F) No (F)
mpu_get_dmp_state 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
setup_compass 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
mpu_get_compass_reg 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
mpu_get_compass_fsr 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)

Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
mpu_lp_motion_interrupt 37 (F) 19 (F) 26 (F) 10 (F) No (F)
run_self_test 3 (P) 2 (P) 0 (P) 1 (P) Yes (P)
inv_orientation_matrix_to_scalar 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
inv_row_2_scale 6 (F) 7 (P) 0 (P) 1 (P) Yes (P)
mget_ms 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
mpu_dmp_init 18 (F) 11 (F) 18 (F) 11 (F) No (F)
mpu_dmp_get_data 3 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
Total for inv_mpu.c 427 (F) 299 (P) 248 (F) 133 (F) No (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (inv_mpu.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for inv_mpu.c 1958 (F) 2017 (F) 38 (P) 218 (P) 256 (P) 3975 (F) 31800 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (inv_mpu.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
set_int_enable 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_reg_dump 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
mpu_read_reg 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_lp_accel_mode 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_gyro_reg 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_accel_reg 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_temperature 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_accel_bias 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_reset_fifo 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
mpu_get_gyro_fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_gyro_fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_accel_fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_accel_fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_lpf 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_lpf 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_sample_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_sample_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_compass_sample_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_compass_sample_rate 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
mpu_get_gyro_sens 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_accel_sens 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_fifo_config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_configure_fifo 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_power_state 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_sensors 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_int_status 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_read_fifo 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_read_fifo_stream 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_bypass 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
mpu_set_int_level 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_set_int_latched 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
get_accel_prod_shift 2 (P) 2 (P) 5 (P) 3 (P) Yes (P)
accel_self_test 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
gyro_self_test 2 (P) 2 (P) 5 (P) 3 (P) Yes (P)
get_st_biases 1 (P) 1 (P) 3 (P) 2 (P) Yes (P)
mpu_run_self_test 2 (P) 1 (P) 4 (P) 2 (P) Yes (P)
mpu_write_mem 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_read_mem 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_load_firmware 1 (P) 1 (P) 3 (P) 2 (P) Yes (P)
           
mpu_set_dmp_state 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_dmp_state 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
setup_compass 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_compass_reg 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_get_compass_fsr 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
mpu_lp_motion_interrupt 1 (P) 1 (P) 4 (P) 2 (P) Yes (P)
run_self_test 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
inv_orientation_matrix_to_scalar 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
inv_row_2_scale 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mget_ms 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
mpu_dmp_init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
mpu_dmp_get_data 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for inv_mpu.c 11 (P) 2 (P) 21 (P) 3 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (inv_mpu.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for inv_mpu.c 1333 (F) 1315 (F) 18 (F) 54 (F) 0 (P) 12 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (inv_mpu.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
set_int_enable 0 (P) 3 (P) 1 (P)
mpu_reg_dump 0 (P) 0 (P) 2 (P)
mpu_read_reg 2 (P) 0 (P) 1 (P)
mpu_init 0 (P) 1 (P) 12 (F)
mpu_lp_accel_mode 0 (P) 2 (P) 4 (P)
mpu_get_gyro_reg 0 (P) 0 (P) 2 (P)
mpu_get_accel_reg 0 (P) 0 (P) 2 (P)
mpu_get_temperature 0 (P) 0 (P) 2 (P)
mpu_set_accel_bias 0 (P) 0 (P) 2 (P)
mpu_reset_fifo 0 (P) 4 (P) 2 (P)
       
mpu_get_gyro_fsr 0 (P) 2 (P) 0 (P)
mpu_set_gyro_fsr 0 (P) 3 (P) 1 (P)
mpu_get_accel_fsr 0 (P) 2 (P) 0 (P)
mpu_set_accel_fsr 0 (P) 3 (P) 1 (P)
mpu_get_lpf 0 (P) 2 (P) 0 (P)
mpu_set_lpf 0 (P) 5 (P) 1 (P)
mpu_get_sample_rate 0 (P) 2 (P) 0 (P)
mpu_set_sample_rate 0 (P) 5 (P) 3 (P)
mpu_get_compass_sample_rate 0 (P) 0 (P) 0 (P)
mpu_set_compass_sample_rate 0 (P) 0 (P) 0 (P)
       
mpu_get_gyro_sens 0 (P) 1 (P) 0 (P)
mpu_get_accel_sens 0 (P) 1 (P) 0 (P)
mpu_get_fifo_config 0 (P) 2 (P) 0 (P)
mpu_configure_fifo 0 (P) 5 (P) 2 (P)
mpu_get_power_state 0 (P) 0 (P) 0 (P)
mpu_set_sensors 0 (P) 4 (P) 3 (P)
mpu_get_int_status 0 (P) 0 (P) 1 (P)
mpu_read_fifo 0 (P) 0 (P) 3 (P)
mpu_read_fifo_stream 0 (P) 0 (P) 2 (P)
mpu_set_bypass 0 (P) 2 (P) 3 (P)
       
mpu_set_int_level 0 (P) 0 (P) 0 (P)
mpu_set_int_latched 0 (P) 2 (P) 1 (P)
get_accel_prod_shift 0 (P) 1 (P) 1 (P)
accel_self_test 3 (P) 1 (P) 3 (P)
gyro_self_test 4 (P) 1 (P) 3 (P)
get_st_biases 4 (P) 1 (P) 3 (P)
mpu_run_self_test 10 (P) 1 (P) 15 (F)
mpu_write_mem 0 (P) 1 (P) 1 (P)
mpu_read_mem 0 (P) 1 (P) 2 (P)
mpu_load_firmware 0 (P) 0 (P) 4 (P)
       
mpu_set_dmp_state 0 (P) 3 (P) 5 (P)
mpu_get_dmp_state 0 (P) 0 (P) 0 (P)
setup_compass 0 (P) 0 (P) 0 (P)
mpu_get_compass_reg 0 (P) 0 (P) 0 (P)
mpu_get_compass_fsr 0 (P) 0 (P) 0 (P)

Procedure Globals in File Fan
  Procedure Fan in Out
 
mpu_lp_motion_interrupt 0 (P) 0 (P) 16 (F)
run_self_test 10 (P) 1 (P) 5 (P)
inv_orientation_matrix_to_scalar 0 (P) 1 (P) 1 (P)
inv_row_2_scale 0 (P) 1 (P) 0 (P)
mget_ms 0 (P) 4 (P) 0 (P)
       
mpu_dmp_init 10 (P) 0 (P) 12 (F)
mpu_dmp_get_data 0 (P) 0 (P) 2 (P)
       
Total for inv_mpu.c 43 (P) 68 (P) 124 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



hcsr04.c


Reformatted Code Information for File (hcsr04.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for hcsr04.c 127 (P) 35 (F) (28%) 62 (P) (49%) 30 (P) (24%) 5 (P) 90 (P) 1.41 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (hcsr04.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
HCSR04_GPIO_Configuration 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
HCSR04_TIM_Configuration 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
HCSR04_Init 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
HCSR04_Startup 5 (P) 1 (P) 5.00 (P) 1 (P) 1 (P)
HCSR04_WaitToConvert 31 (P) 10 (P) 3.10 (P) 1 (P) 1 (P)
           
Total for hcsr04.c 62 (P) 14 (P) 4.43 (P) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (hcsr04.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
HCSR04_GPIO_Configuration 11 (P) 6 (P) (55%) 0 (P) (0%) 5 (P) (45%) 0 (P)
HCSR04_TIM_Configuration 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
HCSR04_Init 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
HCSR04_Startup 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
HCSR04_WaitToConvert 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
Total for hcsr04.c 35 (F) 30 (P) (86%) 0 (P) (0%) 5 (P) (14%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (hcsr04.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
HCSR04_GPIO_Configuration 11 (P) 100 (P) 55 (P) 0 (F) 45 (P)
HCSR04_TIM_Configuration 9 (P) 67 (P) 67 (P) 0 (F) 0 (F)
HCSR04_Init 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
HCSR04_Startup 5 (P) 120 (P) 120 (P) 0 (F) 0 (F)
HCSR04_WaitToConvert 31 (P) 19 (P) 19 (P) 0 (F) 0 (F)
           
Total for hcsr04.c 62 (P) 56 (P) 48 0 (F) 8 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (hcsr04.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
HCSR04_GPIO_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
HCSR04_TIM_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
HCSR04_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
HCSR04_Startup 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
HCSR04_WaitToConvert 4 (P) 4 (P) 3 (F) 3 (P) No (F)
           
Total for hcsr04.c 4 (P) 4 (P) 3 (P) 3 (P) No (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (hcsr04.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for hcsr04.c 30 (P) 67 (P) 10 (P) 25 (P) 35 (P) 97 (P) 497 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (hcsr04.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
HCSR04_GPIO_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
HCSR04_TIM_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
HCSR04_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
HCSR04_Startup 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
HCSR04_WaitToConvert 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)
           
Total for hcsr04.c 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (hcsr04.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for hcsr04.c 16 (P) 16 (P) 0 (P) 4 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (hcsr04.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
HCSR04_GPIO_Configuration 0 (P) 1 (P) 3 (P)
HCSR04_TIM_Configuration 0 (P) 1 (P) 3 (P)
HCSR04_Init 0 (P) 0 (P) 2 (P)
HCSR04_Startup 0 (P) 1 (P) 3 (P)
HCSR04_WaitToConvert 0 (P) 0 (P) 5 (P)
       
Total for hcsr04.c 0 (P) 3 (P) 16 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



exti.c


Reformatted Code Information for File (exti.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for exti.c 51 (P) 20 (F) (39%) 19 (P) (37%) 12 (P) (24%) 1 (P) 34 (P) 1.50 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (exti.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
EXTI_GPIO_Config 19 (P) 1 (P) 19.00 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (exti.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
EXTI_GPIO_Config 20 (P) 7 (P) (35%) 0 (P) (0%) 13 (P) (65%) 3 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (exti.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
EXTI_GPIO_Config 19 (P) 105 (P) 37 (P) 0 (F) 68 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (exti.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
EXTI_GPIO_Config 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (exti.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for exti.c 13 (P) 41 (P) 2 (P) 16 (P) 18 (P) 54 (P) 225 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (exti.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
EXTI_GPIO_Config 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (exti.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for exti.c 1 (P) 1 (P) 0 (P) 1 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (exti.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
EXTI_GPIO_Config 0 (P) 0 (P) 6 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



encode.c


Reformatted Code Information for File (encode.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for encode.c 138 (P) 60 (P) (43%) 52 (P) (38%) 26 (P) (19%) 6 (P) 107 (P) 1.29 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (encode.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
TIM2_GPIO_Configuration 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
TIM4_GPIO_Configuration 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
TIM2_Mode_Configuration 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
TIM4_Mode_Configuration 13 (P) 1 (P) 13.00 (F) 1 (P) 1 (P)
TIM2_Code_Configuration 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
TIM4_Code_Configuration 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
           
Total for encode.c 52 (P) 6 (P) 8.67 (F) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (encode.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
TIM2_GPIO_Configuration 10 (P) 6 (P) (60%) 0 (P) (0%) 4 (P) (40%) 0 (P)
TIM4_GPIO_Configuration 10 (P) 6 (P) (60%) 0 (P) (0%) 4 (P) (40%) 0 (P)
TIM2_Mode_Configuration 14 (P) 6 (P) (43%) 0 (P) (0%) 8 (P) (57%) 0 (P)
TIM4_Mode_Configuration 14 (P) 6 (P) (43%) 0 (P) (0%) 8 (P) (57%) 0 (P)
TIM2_Code_Configuration 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TIM4_Code_Configuration 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
Total for encode.c 60 (P) 36 (P) (60%) 0 (P) (0%) 24 (P) (40%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (encode.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
TIM2_GPIO_Configuration 7 (P) 143 (P) 86 (P) 0 (F) 57 (P)
TIM4_GPIO_Configuration 7 (P) 143 (P) 86 (P) 0 (F) 57 (P)
TIM2_Mode_Configuration 13 (P) 108 (P) 46 (P) 0 (F) 62 (P)
TIM4_Mode_Configuration 13 (P) 108 (P) 46 (P) 0 (F) 62 (P)
TIM2_Code_Configuration 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
TIM4_Code_Configuration 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
           
Total for encode.c 52 (P) 115 (P) 69 0 (F) 46 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (encode.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
TIM2_GPIO_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM4_GPIO_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM2_Mode_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM4_Mode_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM2_Code_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TIM4_Code_Configuration 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for encode.c 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (encode.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for encode.c 24 (P) 89 (P) 3 (P) 32 (P) 35 (P) 113 (P) 579 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (encode.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
TIM2_GPIO_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM4_GPIO_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM2_Mode_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM4_Mode_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM2_Code_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TIM4_Code_Configuration 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for encode.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (encode.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for encode.c 10 (P) 10 (P) 0 (P) 1 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (encode.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
TIM2_GPIO_Configuration 0 (P) 1 (P) 3 (P)
TIM4_GPIO_Configuration 0 (P) 1 (P) 3 (P)
TIM2_Mode_Configuration 0 (P) 1 (P) 6 (F)
TIM4_Mode_Configuration 0 (P) 1 (P) 6 (F)
TIM2_Code_Configuration 0 (P) 0 (P) 2 (P)
TIM4_Code_Configuration 0 (P) 0 (P) 2 (P)
       
Total for encode.c 0 (P) 4 (P) 22 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



ctiic.c


Reformatted Code Information for File (ctiic.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for ctiic.c 434 (P) 122 (P) (28%) 247 (P) (57%) 65 (P) (15%) 12 (P) 319 (P) 1.36 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (ctiic.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
CT_IIC_Init 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
i2c_Delay 2 (P) 1 (P) 2.00 (P) 1 (P) 1 (P)
CT_IIC_Start 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
CT_IIC_Stop 7 (P) 1 (P) 7.00 (F) 1 (P) 1 (P)
CT_IIC_Send_Byte 39 (P) 10 (P) 3.90 (P) 1 (P) 1 (P)
CT_IIC_Read_Byte 41 (P) 10 (P) 4.10 (P) 1 (P) 1 (P)
CT_IIC_Wait_Ack 23 (P) 4 (P) 5.75 (P) 1 (P) 1 (P)
CT_IIC_Ack 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
CT_IIC_NAck 11 (P) 1 (P) 11.00 (F) 1 (P) 1 (P)
IIC_CheckDevice 24 (P) 6 (P) 4.00 (P) 1 (P) 2 (F)
           
IIC_WriteByte 39 (P) 7 (P) 5.57 (P) 1 (P) 3 (F)
IIC_ReadByte 28 (P) 1 (P) 28.00 (F) 1 (P) 1 (P)
           
Total for ctiic.c 247 (P) 44 (P) 5.61 (P) 1 (P) 4 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (ctiic.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
CT_IIC_Init 26 (P) 24 (P) (92%) 0 (P) (0%) 2 (P) (8%) 0 (P)
i2c_Delay 15 (P) 6 (P) (40%) 9 (P) (60%) 0 (F) (0%) 1 (P)
CT_IIC_Start 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 0 (P)
CT_IIC_Stop 7 (F) 6 (P) (86%) 1 (P) (14%) 0 (F) (0%) 0 (P)
CT_IIC_Send_Byte 9 (F) 6 (P) (67%) 1 (P) (11%) 2 (P) (22%) 0 (P)
CT_IIC_Read_Byte 9 (F) 6 (P) (67%) 1 (P) (11%) 2 (P) (22%) 0 (P)
CT_IIC_Wait_Ack 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
CT_IIC_Ack 9 (F) 6 (P) (67%) 0 (P) (0%) 3 (P) (33%) 0 (P)
CT_IIC_NAck 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 0 (P)
IIC_CheckDevice 11 (P) 6 (P) (55%) 0 (P) (0%) 5 (P) (45%) 0 (P)
           
IIC_WriteByte 5 (F) 0 (F) (0%) 1 (P) (20%) 4 (P) (80%) 0 (P)
IIC_ReadByte 7 (F) 0 (F) (0%) 0 (P) (0%) 7 (P) (100%) 0 (P)
           
Total for ctiic.c 122 (P) 78 (P) (64%) 14 (P) (11%) 30 (P) (25%) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (ctiic.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
CT_IIC_Init 9 (P) 289 (F) 267 (P) 0 (F) 22 (P)
i2c_Delay 2 (P) 750 (F) 300 (P) 450 (F) 0 (F)
CT_IIC_Start 12 (P) 58 (P) 50 (P) 8 (P) 0 (F)
CT_IIC_Stop 7 (P) 100 (P) 86 (P) 14 (P) 0 (F)
CT_IIC_Send_Byte 39 (P) 23 (P) 15 (P) 3 (P) 5 (P)
CT_IIC_Read_Byte 41 (P) 22 (P) 15 (P) 2 (P) 5 (P)
CT_IIC_Wait_Ack 23 (P) 39 (P) 26 (P) 0 (F) 13 (P)
CT_IIC_Ack 12 (P) 75 (P) 50 (P) 0 (F) 25 (P)
CT_IIC_NAck 11 (P) 73 (P) 55 (P) 0 (F) 18 (P)
IIC_CheckDevice 24 (P) 46 (P) 25 (P) 0 (F) 21 (P)
           
IIC_WriteByte 39 (P) 13 (P) 0 (P) 3 (P) 10 (P)
IIC_ReadByte 28 (P) 25 (P) 0 (P) 0 (F) 25 (P)
           
Total for ctiic.c 247 (P) 49 (P) 32 6 (P) 12 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (ctiic.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
CT_IIC_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
i2c_Delay 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Start 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Stop 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Send_Byte 5 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Read_Byte 5 (P) 4 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Wait_Ack 1 (P) 2 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_Ack 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
CT_IIC_NAck 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
IIC_CheckDevice 1 (P) 3 (P) 0 (P) 1 (P) Yes (P)
           
IIC_WriteByte 2 (P) 3 (P) 0 (P) 1 (P) Yes (P)
IIC_ReadByte 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
Total for ctiic.c 14 (P) 12 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (ctiic.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for ctiic.c 58 (P) 131 (P) 14 (P) 26 (P) 40 (P) 189 (P) 1005 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (ctiic.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
CT_IIC_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
i2c_Delay 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CT_IIC_Start 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CT_IIC_Stop 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CT_IIC_Send_Byte 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
CT_IIC_Read_Byte 1 (P) 1 (P) 2 (P) 2 (P) Yes (P)
CT_IIC_Wait_Ack 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CT_IIC_Ack 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
CT_IIC_NAck 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IIC_CheckDevice 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
IIC_WriteByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
IIC_ReadByte 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for ctiic.c 2 (P) 1 (P) 3 (P) 2 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (ctiic.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for ctiic.c 128 (P) 126 (P) 2 (P) 18 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (ctiic.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
CT_IIC_Init 0 (P) 0 (P) 3 (P)
i2c_Delay 0 (P) 7 (F) 0 (P)
CT_IIC_Start 0 (P) 3 (P) 5 (P)
CT_IIC_Stop 0 (P) 4 (P) 4 (P)
CT_IIC_Send_Byte 0 (P) 3 (P) 5 (P)
CT_IIC_Read_Byte 0 (P) 1 (P) 6 (F)
CT_IIC_Wait_Ack 0 (P) 3 (P) 5 (P)
CT_IIC_Ack 0 (P) 1 (P) 5 (P)
CT_IIC_NAck 0 (P) 1 (P) 4 (P)
IIC_CheckDevice 0 (P) 0 (P) 6 (F)
       
IIC_WriteByte 0 (P) 0 (P) 4 (P)
IIC_ReadByte 0 (P) 0 (P) 5 (P)
       
Total for ctiic.c 0 (P) 23 (P) 52 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



core_cm3.c


Reformatted Code Information for File (core_cm3.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for core_cm3.c 31 (P) 25 (F) (81%) 0 (P) (0%) 6 (P) (19%) 0 (P) 784 (P) 0.04 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



app.c


Reformatted Code Information for File (app.c)


File Total Ref. Total Executable Non-Executable Number of Total Expansion
  Lines Comments Ref. Lines Ref. Lines Procedures Src. Lines Factor
 
Total for app.c 278 (P) 70 (P) (25%) 134 (P) (48%) 74 (P) (27%) 11 (P) 190 (P) 1.46 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Procedure Information (app.c)


Procedure Executable Basic Ave. Block Procedure Procedure
  Lines Blocks Length Entries Exits
 
MOTOR2_GetSpeed 5 (P) 1 (P) 5.00 (P) 1 (P) 1 (P)
MOTOR4_GetSpeed 5 (P) 1 (P) 5.00 (P) 1 (P) 1 (P)
SpeedPID_Init 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
SpeedPID_Realize 8 (P) 1 (P) 8.00 (F) 1 (P) 1 (P)
SpeedControlOutput 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
AnglePID_Init 12 (P) 1 (P) 12.00 (F) 1 (P) 1 (P)
AnglePID_Realize 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
TurnPID_Init 9 (P) 1 (P) 9.00 (F) 1 (P) 1 (P)
TurnPID_Realize 5 (P) 1 (P) 5.00 (P) 1 (P) 1 (P)
TurnControlOutput 6 (P) 1 (P) 6.00 (P) 1 (P) 1 (P)
           
MotorOutput 60 (P) 17 (P) 3.53 (P) 1 (P) 1 (P)
           
Total for app.c 134 (P) 27 (P) 4.96 (P) 1 (P) 1 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Comments Associated with Procedures (% of total) (app.c)


Procedure Total In In In Blank
  Comments Headers Declarations Executable Code Comments
 
MOTOR2_GetSpeed 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
MOTOR4_GetSpeed 7 (F) 6 (P) (86%) 0 (P) (0%) 1 (P) (14%) 0 (P)
SpeedPID_Init 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
SpeedPID_Realize 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
SpeedControlOutput 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
AnglePID_Init 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
AnglePID_Realize 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TurnPID_Init 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TurnPID_Realize 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
TurnControlOutput 6 (F) 6 (P) (100%) 0 (P) (0%) 0 (F) (0%) 0 (P)
           
MotorOutput 8 (F) 6 (P) (75%) 0 (P) (0%) 2 (P) (25%) 0 (P)
           
Total for app.c 70 (F) 66 (P) (94%) 0 (P) (0%) 4 (F) (6%) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Ratio of Comments to Executable lines (%) (app.c)


Procedure Executable Total In In In
  Lines Comments(%) Headers(%) Decl.(%) Code(%)
 
MOTOR2_GetSpeed 5 (P) 140 (P) 120 (P) 0 (F) 20 (P)
MOTOR4_GetSpeed 5 (P) 140 (P) 120 (P) 0 (F) 20 (P)
SpeedPID_Init 12 (P) 50 (P) 50 (P) 0 (F) 0 (F)
SpeedPID_Realize 8 (P) 75 (P) 75 (P) 0 (F) 0 (F)
SpeedControlOutput 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
AnglePID_Init 12 (P) 50 (P) 50 (P) 0 (F) 0 (F)
AnglePID_Realize 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
TurnPID_Init 9 (P) 67 (P) 67 (P) 0 (F) 0 (F)
TurnPID_Realize 5 (P) 120 (P) 120 (P) 0 (F) 0 (F)
TurnControlOutput 6 (P) 100 (P) 100 (P) 0 (F) 0 (F)
           
MotorOutput 60 (P) 13 (P) 10 (P) 0 (F) 3 (F)
           
Total for app.c 134 (P) 52 (P) 49 0 (F) 3 (F)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Complexity Metrics (app.c)


Procedure   Cyclomatic Essential Ess. Cycl. Structured
  Knots Complexity Knots Complexity Proc (SPV)
 
MOTOR2_GetSpeed 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
MOTOR4_GetSpeed 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SpeedPID_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SpeedPID_Realize 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
SpeedControlOutput 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
AnglePID_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
AnglePID_Realize 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TurnPID_Init 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TurnPID_Realize 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
TurnControlOutput 0 (P) 1 (P) 0 (P) 1 (P) Yes (P)
           
MotorOutput 4 (P) 7 (P) 0 (P) 1 (P) Yes (P)
           
Total for app.c 4 (P) 7 (P) 0 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Halsteads Metrics (app.c)


File Total Total Unique Unique      
  Operators Operands Operators Operands Vocabulary Length Volume
 
Total for app.c 190 (P) 217 (P) 14 (P) 75 (P) 89 (P) 407 (P) 2635 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Loop/Interval Analysis (app.c)


Procedure Number of Nesting Order 1 Max. Int. Reducible
  Loops Depth Intervals Nesting (Intervals)
 
MOTOR2_GetSpeed 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
MOTOR4_GetSpeed 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SpeedPID_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SpeedPID_Realize 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
SpeedControlOutput 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
AnglePID_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
AnglePID_Realize 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TurnPID_Init 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TurnPID_Realize 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
TurnControlOutput 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
MotorOutput 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)
           
Total for app.c 0 (P) 0 (P) 1 (P) 1 (P) Yes (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



LCSAJ and Unreachability (app.c)


File Total Reachable Unreachable Max. LCSAJ Unreachable Unreachable
  LCSAJs LCSAJs LCSAJs Density Lines Branches
 
Total for app.c 31 (P) 31 (P) 0 (P) 6 (P) 0 (P) 0 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]



Dataflow Information (app.c)


Procedure Globals in File Fan
  Procedure Fan in Out
 
MOTOR2_GetSpeed 0 (P) 0 (P) 2 (P)
MOTOR4_GetSpeed 0 (P) 0 (P) 2 (P)
SpeedPID_Init 0 (P) 0 (P) 0 (P)
SpeedPID_Realize 1 (P) 0 (P) 0 (P)
SpeedControlOutput 0 (P) 0 (P) 0 (P)
AnglePID_Init 0 (P) 0 (P) 0 (P)
AnglePID_Realize 0 (P) 0 (P) 0 (P)
TurnPID_Init 0 (P) 0 (P) 0 (P)
TurnPID_Realize 0 (P) 0 (P) 0 (P)
TurnControlOutput 0 (P) 0 (P) 0 (P)
       
MotorOutput 1 (P) 0 (P) 2 (P)
       
Total for app.c 2 (P) 0 (P) 6 (P)

[ Top of Report | Key to Terms | Metric Table | Contents ]




Key to Terms



Clarity

Metrics that indicate how easy it is likely to be
to read and understand the purpose of a source code module or procedure:


Testability

Metrics that indicate the amount testing that will be required,
particularly with respect to achieving high Dynamic Coverage :


Maintainability

Metrics that indicate the level of consideration that must be given
to modifying a source code module or procedure:

Metric results Pass/Fail indicators.

The display of Pass and Fail indicators is controlled by two environment variables:

Result Environment Flag Indicator
Pass SHOW_METRIC_PASS (P)
Fail SHOW_METRIC_FAIL (F)


Upper and lower limits for a "Total for <file>" metric can be derived from the
upper and lower limits for a procedure where appropriate.
This is achieved using the 'c' marker in the Metrics Data File.

The base for this calculation is currently variable between files: (Number of procedures in each source file)




[ Top of Report | Metric Table | Contents ]


End of Quality Review Report

Copyright © 2013 Liverpool Data Research Associates