debugger.Interrupt.SetTimer


This function sets the timer interrupt. [RH850 Simulator]

Remark

This function provides the same function as debugger.XRunBreak.Set.

[Specification format]

debugger.Interrupt.SetTimer(time, timeType = TimeType.Ms, periodic = False)

[Argument(s)]

Argument

Description

time

Specify the break time.

timeType

Specify the break time unit.

The units that can be specified are shown below.

Type

Description

TimeType.Min

Minute unit

TimeType.S

Second unit

TimeType.Ms

Millisecond unit (default)

TimeType.Us

Microsecond unit

TimeType.Ns

Nanosecond unit

periodic

Specify whether to call the callback every time the specified time elapses.

True: Call at every specified time interval.

False: Call one time only (default).

[Return value]

If the timer interrupt was set successfully: True

If there was an error when setting the timer interrupt: False

[Detailed description]

-

This function sets the timer interrupt.

-

The calling interval of a timer interrupt depends on the simulator.

-

Register the Python function that is processed after the specified time passes. See “Hook“ for detail.

[Example of use]

>>>debugger.Interrupt.ReferTimer()
None
>>>debugger.Interrupt.SetTimer(1, TimeType.S, True)
True
>>>debugger.Interrupt.ReferTimer()
1Second Periodic