User`s manual

RX62N Group, RX621 Group 4. Library Reference
3) R_IWDT_Read
Synopsis
Read the watchdog timer status and counter.
Prototype
bool R_IWDT_Read(
uint16_t * data
// A pointer to the data storage location
);
Description
Read and store the status flags.
[data]
The timer status shall be stored in the following format.
b15
b14
b13 - b0
0
0: Not underflowed
1: An underflow has occurred
The current counter value
Return value
True.
Category
Independent Watchdog Timer
Reference
None.
Remarks
If the flag is set to 1, it shall be automatically cleared to 0 by this function.
Program example
/* RPDL definitions */
#include "r_pdl_iwdt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
uint16_t Status;
void func(void)
{
/* Read the timer status */
R_IWDT_Read(
&Status
);
}
R20UT0084EE0112 Rev.1.12 Page 4-168
July. 16, 2014