RL78/G13
Clock Generator (Clock Switching) CC-RL
R01AN2831EJ0100 Rev. 1.00
Page 16 of 51
May 28, 2015
[Function Name] R_CGC_GetClockStatus
Synopsis
Gets clock status.
Header
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_userdefine.h"
Declaration
uint8_t R_CGC_GetClockStatus(uint8_t status)
Explanation
Gets the clock status.
Gets the status of the clock specified in the argument so that the user can check if the clock
oscillates.
Arguments
First argument: status
: Clock status (1 to 3)
Set one of the following constants:
X1_STATUS
Gets the status of X1 oscillation clock.
XT1_STATUS
Gets the status of XT1 oscillation clock.
HOCO_STATUS
Gets the status of HOCO clock.
Return value
If the clock has not been switched:
CLOCK_NOT_OSCILLATING (0x00)
If the clock has been switched:
CLOCK_OSCILLATING (0x01)
Remarks
None