RL78/G13 Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00 Page 17 of 51
May 28, 2015
[Function Name] R_CGC_Get_X1_Status
Synopsis
Gets X1 oscillation clock status.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_userdefine.h"
Declaration
uint8_t R_CGC_Get_X1_Status(void)
Explanation
Gets the X1 oscillation clock status.
Arguments
None
Return value
When the clock has not been switched:
CLOCK_NOT_OSCILLATING (0x00)
When the clock has been switched:
CLOCK_OSCILLATING (0x01)
Remarks
None
[Function Name] R_CGC_Get_XT1_Status
Synopsis
Gets XT1 oscillation clock status.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_userdefine.h"
Declaration
uint8_t R_CGC_Get_XT1_Status(void)
Explanation
Gets the XT1 oscillation clock status.
Arguments
None
Return value
When the clock has not been switched:
CLOCK_NOT_OSCILLATING (0x00)
When the clock has been switched:
CLOCK_OSCILLATING (0x01)
Remarks
None
[Function Name] R_CGC_Get_HOCO_Status
Synopsis
Gets HOCO clock status.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_userdefine.h"
Declaration
uint8_t R_CGC_Get_HOCO_Status(void)
Explanation
Gets the HOCO clock status.
Arguments
None
Return value
When the clock has not been switched:
CLOCK_NOT_OSCILLATING (0x00)
When the clock has been switched:
CLOCK_OSCILLATING (0x01)
Remarks
None