TimerCondition


This class creates conditions of a conditional timer.

[Type]

class TimerCondition:
        StartAddress = ""
        StartData = ""
        StartTimerType = TimerType.Execution
        EndAddress = ""
        EndData = ""
        EndTimerType = TimerType.Execution

[Variable]

Variable

Description

StartAddress

Specify an address starting timer measurement.

Must be specified.

StartData

Specify a data condition (number) of an address starting timer measurement.

This specification is ignored if “TimerType.Execution” is specified for StartTimerType.

StartTimerType

Specify the type of timers which start timer measurement.

The types that can be specified are shown below.

Type

Description

TimerType.Execution

Start a timer at execution (default)

TimerType.Read

Start a timer at data read

TimerType.Write

Start a timer at data write

TimerType.Access

Start a timer at data access

EndAddress

Specify the type of timers which end timer measurement.

Must be specified.

EndData

Specify a data condition (number) of an address ending timer measurement.

This specification is ignored if “TimerType.Execution” is specified for EndTimerType.

EndTimerType

Specify the type of timers which end timer measurement.

The types that can be specified are shown below.

Type

Description

TimerType.Execution

End a timer at execution (default)

TimerType.Read

End a timer at data read

TimerType.Write

End a timer at data write

TimerType.Access

End a timer at data access

[Detailed description]

-

"TimerCondition" is in class format, and the condition of a conditional timer is set in the variable.
In order to create a condition of a conditional timer, create an instance, and set conditions for that instance.

[Example of use]

>>>execute_timer = TimerCondition()     ... Create instance
>>>execute_timer.StartAddress = "main"
>>>execute_timer.StartTimerType = TimerType.Execution
>>>execute_timer.EndAddress = "sub"
>>>execute_timer.EndTimerType = TimerType.Execution
>>>debugger.Timer.Set(execute_timer)    ... Specify function in which to set the conditional timer in parameter
1
>>>