1 /*********************************************************************************************************************** 2 * Copyright [2015-2017] Renesas Electronics Corporation and/or its licensors. All Rights Reserved. 3 * 4 * This file is part of Renesas SynergyTM Software Package (SSP) 5 * 6 * The contents of this file (the "contents") are proprietary and confidential to Renesas Electronics Corporation 7 * and/or its licensors ("Renesas") and subject to statutory and contractual protections. 8 * 9 * This file is subject to a Renesas SSP license agreement. Unless otherwise agreed in an SSP license agreement with 10 * Renesas: 1) you may not use, copy, modify, distribute, display, or perform the contents; 2) you may not use any name 11 * or mark of Renesas for advertising or publicity purposes or in connection with your use of the contents; 3) RENESAS 12 * MAKES NO WARRANTY OR REPRESENTATIONS ABOUT THE SUITABILITY OF THE CONTENTS FOR ANY PURPOSE; THE CONTENTS ARE PROVIDED 13 * "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 14 * PARTICULAR PURPOSE, AND NON-INFRINGEMENT; AND 4) RENESAS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, OR 15 * CONSEQUENTIAL DAMAGES, INCLUDING DAMAGES RESULTING FROM LOSS OF USE, DATA, OR PROJECTS, WHETHER IN AN ACTION OF 16 * CONTRACT OR TORT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE CONTENTS. Third-party contents 17 * included in this file may be subject to different terms. 18 **********************************************************************************************************************/ 19 20 #ifndef R_CGC_R_CGC_PRIVATE_API_H_ 21 #define R_CGC_R_CGC_PRIVATE_API_H_ 22 23 /* Common macro for SSP header files. There is also a corresponding SSP_FOOTER macro at the end of this file. */ 24 SSP_HEADER 25 26 /*********************************************************************************************************************** 27 * Private Instance API Functions. DO NOT USE! Use functions through Interface API structure instead. 28 **********************************************************************************************************************/ 29 ssp_err_t R_CGC_Init (void); 30 ssp_err_t R_CGC_ClocksCfg(cgc_clocks_cfg_t const * const p_clock_cfg); 31 ssp_err_t R_CGC_ClockStart (cgc_clock_t clock_source, cgc_clock_cfg_t * pclock_cfg); 32 ssp_err_t R_CGC_ClockStop (cgc_clock_t clock_source); 33 ssp_err_t R_CGC_SystemClockSet (cgc_clock_t clock_source, cgc_system_clock_cfg_t const * const pclock_cfg); 34 ssp_err_t R_CGC_SystemClockGet (cgc_clock_t * clock_source, cgc_system_clock_cfg_t * pSet_clock_cfg); 35 ssp_err_t R_CGC_SystemClockFreqGet (cgc_system_clocks_t clock, uint32_t * freq_hz); 36 ssp_err_t R_CGC_ClockCheck (cgc_clock_t clock_source); 37 ssp_err_t R_CGC_OscStopDetect (void (* pcallback) (cgc_callback_args_t * p_args), bool enable); 38 ssp_err_t R_CGC_OscStopStatusClear (void); 39 ssp_err_t R_CGC_BusClockOutCfg (cgc_bclockout_dividers_t divider); 40 ssp_err_t R_CGC_BusClockOutEnable (void); 41 ssp_err_t R_CGC_BusClockOutDisable (void); 42 ssp_err_t R_CGC_ClockOutCfg (cgc_clock_t clock, cgc_clockout_dividers_t divider); 43 ssp_err_t R_CGC_ClockOutEnable (void); 44 ssp_err_t R_CGC_ClockOutDisable (void); 45 ssp_err_t R_CGC_LCDClockCfg (cgc_clock_t clock); 46 ssp_err_t R_CGC_LCDClockEnable (void); 47 ssp_err_t R_CGC_LCDClockDisable (void); 48 ssp_err_t R_CGC_SDADCClockCfg (cgc_clock_t clock); 49 ssp_err_t R_CGC_SDADCClockEnable (void); 50 ssp_err_t R_CGC_SDADCClockDisable (void); 51 ssp_err_t R_CGC_SDRAMClockOutEnable (void); 52 ssp_err_t R_CGC_SDRAMClockOutDisable (void); 53 ssp_err_t R_CGC_USBClockCfg (cgc_usb_clock_div_t divider); 54 ssp_err_t R_CGC_SystickUpdate(uint32_t period_count, cgc_systick_period_units_t units); 55 ssp_err_t R_CGC_VersionGet (ssp_version_t * version); 56 57 /* Common macro for SSP header files. There is also a corresponding SSP_HEADER macro at the top of this file. */ 58 SSP_FOOTER 59 60 #endif /* R_CGC_R_CGC_PRIVATE_API_H_ */ 61