Everything

R_TMRJn_Get_PulseWidth

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

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

Remark 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_TMRJn_Get_PulseWidth ( uint32_t * const active_width );

Remark         n is the channel number.

 

[Argument(s)]

I/O

Argument

Description

O

unit32_t * const active_width;

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

 

[Return value]

None.