Code Complexity Report

Source file: ../../../src/switch/switch_GPIO_interface.h
Source file: ../../../src/switch/switch.h
Source file: ../../../src/switch/switch.c
Function name Cyclomatic complexity (12) LOC (30) Token count Parameter count (4)
handle_DEFAULT_state 2 7 31 1
handle_SW_SWITCHED_OFF_state 4 19 70 1
handle_SW_ON_state 2 8 32 1
handle_SW_SWITCHED_ON_state 4 19 70 1
handle_SW_OFF_state 2 8 32 1
init_switch 1 13 72 4
check_switch 5 22 77 1