User`s manual

RX62N Group, RX621 Group 4. Library Reference
3) R_WDT_Read
Synopsis
Read the Watchdog timer status and registers.
Prototype
bool R_WDT_Read(
uint8_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.
b7 b1
b0
0
0: Not overflowed
1: Overflow has occurred
Return value
True.
Category
Watchdog Timer
Reference
R_WDT_Create
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_wdt.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
uint8_t Flags;
void func(void)
{
/* Read the timer values */
R_WDT_Read(
&Flags
);
}
R20UT0084EE0112 Rev.1.12 Page 4-165
July. 16, 2014