R_TMRJ0_Get_PulseWidth


Reads the pulse width of the 16-bit timer RJ0.

Remarks 1.

This API function can only be called when the 16-bit timer RJ0 is being used for pulse width measurement mode / pulse period measurement mode.

Remarks 2.

If there is an overflow (2 pulses or more) during pulse-width measurement, then the pulse width will not be read correctly.

[Syntax]

#include    "r_cg_macrodriver.h"
void    R_TMRJ0_Get_PulseWidth ( uint32_t * const active_width );

[Argument(s)]

I/O

Argument

Description

O

uint32_t  * const active_width;

Pointer to an area storing the active level width that was read from the TRJ0IO pin

[Return value]

None.