Renesas Electronics
Below is a list of output file files by the Code Generator.
Table 2.1
Output File List
Peripheral Function
File Name
API Function Name
Output (*1)
Common
r_main.c or r_cg_main.c
main
R_MAIN_UserInit
A
r_systeminit.c or r_cg_systeminit.c
hdwinit
R_Systeminit
r_cg_macrodriver.h
-
r_cg_userdefine.h
Clock generator
r_cg_cgc.c
R_CGC_Create
R_CGC_Set_ClockMode
R_CGC_RAMECC_Start
R_CGC_RAMECC_Stop
R_CGC_StackPointer_Start
R_CGC_StackPointer_Stop
R_CGC_ClockMonitor_Start
R_CGC_ClockMonitor_Stop
M
r_cg_cgc_user.c
R_CGC_Create_UserInit
r_cgc_ram_ecc_interrupt
r_cgc_stackpointer_interrupt
r_cgc_clockmonitor_interrupt
R_CGC_Get_ResetSource
r_cg_cgc.h
Port functions
r_cg_port.c
R_PORT_Create
r_cg_port_user.c
R_PORT_Create_UserInit
r_cg_port.h
High-speed on-chip Oscillator clock Frequency Correction function
r_cg_hofc.c
R_HOFC_Create
R_HOFC_Start
R_HOFC_Stop
r_cg_hofc_user.c
R_HOFC_Create_UserInit
r_hofc_interrupt
r_cg_hofc.h
Timer array unit
r_cg_timer.c or r_cg_tau.c
R_TAUm_Create
R_TAUm_Channeln_Start
R_TAUm_Channeln_Higher8bits_Start
R_TAUm_Channeln_Lower8bits_Start
R_TAUm_Channeln_Stop
R_TAUm_Channeln_Higher8bits_Stop
R_TAUm_Channeln_Lower8bits_Stop
R_TAUm_Reset
R_TAUm_Set_PowerOff
R_TAUm_Channeln_Get_PulseWidth
R_TAUm_Channeln_Set_SoftwareTriggerOn
r_cg_timer_user.c or r_cg_tau_user.c
R_TAUm_Create_UserInit
r_taum_channeln_interrupt
r_taum_channeln_higher8bits_interrupt
r_cg_timer.h or r_cg_tau.h
Timer RJ
r_cg_timer.c
R_TMR_RJ0_Create
R_TMR_RJ0_Start
R_TMR_RJ0_Stop
R_TMR_RJ0_Set_PowerOff
R_TMR_RJ0_Get_PulseWidth
R_TMRJ0_Create
R_TMRJ0_Start
R_TMRJ0_Stop
R_TMRJ0_Set_PowerOff
R_TMRJ0_Get_PulseWidth
r_cg_timer_user.c
R_TMR_RJ0_Create_UserInit
r_tmr_rj0_interrupt
R_TMRJ0_Create_UserInit
r_tmrj0_interrupt
r_cg_timer.h
Timer RD
R_TMR_RDn_Create
R_TMR_RDn_Start
R_TMR_RDn_Stop
R_TMR_RDn_Set_PowerOff
R_TMR_RDn_ForcedOutput_Start
R_TMR_RDn_ForcedOutput_Stop
R_TMR_RDn_Get_PulseWidth
R_TMRDn_Create
R_TMRDn_Start
R_TMRDn_Stop
R_TMRDn_Set_PowerOff
R_TMRDn_ForcedOutput_Start
R_TMRDn_ForcedOutput_Stop
R_TMRDn_Get_PulseWidth
R_TMR_RDn_Create_UserInit
r_tmr_rdn_interrupt
R_TMRDn_Create_UserInit
r_tmrdn_interrupt
Timer RG
R_TMR_RG0_Create
R_TMR_RG0_Start
R_TMR_RG0_Stop
R_TMR_RG0_Set_PowerOff
R_TMR_RG0_Get_PulseWidth
R_TMR_RG0_Create_UserInit
r_tmr_rg0_interrupt
Timer RX
r_cg_tmrx.c
R_TMRX_Create
R_TMRX_Start
R_TMRX_Stop
R_TMRX_Set_PowerOff
R_TMRX_Get_BufferValue
r_cg_tmrx_user.c
R_TMRX_Create_UserInit
r_tmrx_interrupt
r_cg_tmrx.h
16-bit timer KB
r_cg_timer.c or r_cg_tmkb.c
R_TMR_KB_Create
R_TMR_KBm_Start
R_TMR_KBm_Stop
R_TMR_KBm_Set_PowerOff
R_TMR_KBmn_ForcedOutput_Start
R_TMR_KBmn_ForcedOutput_Stop
R_TMR_KBm_BatchOverwriteRequestOn
R_TMR_KBm_ForcedOutput_mn_Start
R_TMR_KBm_ForcedOutput_mn_Stop
R_TMR_KBm_Reset
r_cg_timer_user.c or r_cg_tmkb_user.c
R_TMR_KBm_Create_UserInit
r_tmr_kbm_interrupt
r_cg_timer.h or r_cg_tmkb.h
16-bit timer KC0
R_TMR_KC0_Create
R_TMR_KC0_Start
R_TMR_KC0_Stop
R_TMR_KC0_Set_PowerOff
R_TMR_KC0_Create_UserInit
r_tmr_kc0_interrupt
16-bit timer KB2
r_cg_kb2.c
R_KB2m_Create
R_KB2m_Start
R_KB2m_Stop
R_KB2m_Set_PowerOff
R_KB2m_Simultaneous_Start
R_KB2m_Simultaneous_Stop
R_KB2m_Synchronous_Start
R_KB2m_Synchronous_Stop
R_KB2m_TKBOn0_Forced_Output_Stop_Function1_Start
R_KB2m_TKBOn0_Forced_Output_Stop_Function1_Stop
R_KB2m_TKBOn1_Forced_Output_Stop_Function1_Start
R_KB2m_TKBOn1_Forced_Output_Stop_Function1_Stop
R_KB2m_TKBOn0_DitheringFunction_Start
R_KB2m_TKBOn0_DitheringFunction_Stop
R_KB2m_TKBOn1_DitheringFunction_Start
R_KB2m_TKBOn1_DitheringFunction_Stop
R_KB2m_TKBOn0_SmoothStartFunction_Start
R_KB2m_TKBOn0_SmoothStartFunction_Stop
R_KB2m_TKBOn1_SmoothStartFunction_Start
R_KB2m_TKBOn1_SmoothStartFunction_Stop
R_KB2m_Set_BatchOverwriteRequestOn
r_cg_kb2_user.c
R_KB2m_Create_UserInit
r_kb2m_interrupt
r_cg_kb2.h
Real-time clock
r_cg_rtc.c
R_RTC_Create
R_RTC_Start
R_RTC_Stop
R_RTC_Set_PowerOff
R_RTC_Set_HourSystem
R_RTC_Set_CounterValue
R_RTC_Set_CalendarCounterValue
R_RTC_Set_BinaryCounterValue
R_RTC_Get_CounterValue
R_RTC_Get_CalendarCounterValue
R_RTC_Get_BinaryCounterValue
R_RTC_Set_ConstPeriodInterruptOn
R_RTC_Set_ConstPeriodInterruptOff
R_RTC_Set_AlarmOn
R_RTC_Set_CalendarAlarmOn
R_RTC_Set_BinaryAlarmOn
R_RTC_Set_AlarmOff
R_RTC_Set_AlarmValue
R_RTC_Set_CalendarAlarmValue
R_RTC_Set_BinaryAlarmValue
R_RTC_Get_AlarmValue
R_RTC_Get_CalendarAlarmValue
R_RTC_Get_BinaryAlarmValue
R_RTC_Set_RTC1HZOn
R_RTC_Set_RTC1HZOff
R_RTC_Set_RTCOUTOn
R_RTC_Set_RTCOUTOff
r_cg_rtc_user.c
R_RTC_Create_UserInit
r_rtc_interrupt
r_rtc_callback_constperiod
r_rtc_callback_alarm
r_rtc_alarminterrupt
r_rtc_periodicinterrupt
r_rtc_callback_periodic
r_cg_rtc.h
Subsystem clock frequency measurement circuit
r_cg_fmc.c
R_FMC_Create
R_FMC_Start
R_FMC_Stop
R_FMC_Set_PowerOff
r_cg_fmc_user.c
R_FMC_Create_UserInit
r_fmc_interrupt
r_cg_fmc.h
12-bit interval timer
r_cg_it.c
R_IT_Create
R_IT_Start
R_IT_Stop
R_IT_Reset
R_IT_Set_PowerOff
r_cg_it_user.c
R_IT_Create_UserInit
r_it_interrupt
r_cg_it.h
8-bit interval timer
r_cg_it8bit.c
R_IT8bitm_Channeln_Create
R_IT8bitm_Channeln_Start
R_IT8bitm_Channeln_Stop
R_IT8bitm_Channeln_Set_PowerOff
r_cg_it8bit_user.c
R_IT8bitm_Channeln_Create_UserInit
r_it8bitm_channeln_interrupt
r_cg_it8bit.h
16-bit wakeup timer
R_WUTM_Create
R_WUTM_Start
R_WUTM_Stop
R_WUTM_Set_PowerOff
R_WUTM_Create_UserInit
r_wutm_interrupt
Clock output/buzzer output controller
r_cg_pclbuz.c
R_PCLBUZn_Create
R_PCLBUZn_Start
R_PCLBUZn_Stop
R_PCLBUZ_Set_PowerOff
r_cg_pclbuz_user.c
R_PCLBUZn_Create_UserInit
r_cg_pclbuz.h
Watchdog timer
r_cg_wdt.c
R_WDT_Create
R_WDT_Restart
r_cg_wdt_user.c
R_WDT_Create_UserInit
r_wdt_interrupt
r_cg_wdt.h
24-bit DS A/D converter with programmable gain instrumentation amplifier
r_cg_pga_dsad.c
R_PGA_DSAD_Create
R_PGA_DSAD_Start
R_PGA_DSAD_Stop
R_PGA_DSAD_Set_PowerOff
R_PGA_DSAD_Get_AverageResult
R_PGA_DSAD_Get_Result
R_PGA_DSAD_CAMP_OffsetTrimming
r_cg_pga_dsad_user.c
R_PGA_DSAD_Create_UserInit
r_pga_dsad_interrupt_conversion
r_pga_dsad_interrupt_scan
r_cg_pga_dsad.h
A/D converter
r_cg_adc.c
R_ADC_Create
R_ADC_Set_OperationOn
R_ADC_Set_OperationOff
R_ADC_Start
R_ADC_Stop
R_ADC_Reset
R_ADC_Set_PowerOff
R_ADC_Set_ADChannel
R_ADC_Set_SnoozeOn
R_ADC_Set_SnoozeOff
R_ADC_Set_TestChannel
R_ADC_Get_Result
R_ADC_Get_Result_8bit
r_cg_adc_user.c
R_ADC_Create_UserInit
r_adc_interrupt
r_cg_adc.h
Configurable amplifier
r_cg_camp.c
R_CAMP_Create
R_CAMPn_Start
R_CAMPn_Stop
R_CAMP_Set_PowerOff
r_cg_camp_user.c
R_CAMP_Create_UserInit
r_cg_camp.h
Temperature sensor
r_cg_tmps.c
R_TMPS_Create
R_TMPS_Start
R_TMPS_Stop
R_TMPS_Reset
R_TMPS_Set_PowerOff
r_cg_tmps_user.c
R_TMPS_Create_UserInit
r_cg_tmps.h
24-bit DS A/D converter
r_cg_dsadc.c
R_DSADC_Create
R_DSADC_Set_OperationOn
R_DSADC_Set_OperationOff
R_DSADC_Start
R_DSADC_Stop
R_DSADC_Reset
R_DSADC_Set_PowerOff
R_DSADC_Channeln_Get_Result
R_DSADC_Channeln_Get_Result_16bit
r_cg_dsadc_user.c
R_DSADC_Create_UserInit
r_dsadc_interrupt
r_dsadzcn_interrupt
r_cg_dsadc.h
D/A converter
r_cg_dac.c
R_DAC_Create
R_DACn_Start
R_DACn_Stop
R_DAC_Set_PowerOff
R_DACn_Set_ConversionValue
R_DAC_Change_OutputVoltage_8bit
R_DAC_Change_OutputVoltage
R_DACn_Create
R_DAC_Reset
r_cg_dac_user.c
R_DAC_Create_UserInit
r_cg_dac.h
Programmable gain amplifier
r_cg_pga.c
R_PGA_Create
R_PGA_Start
R_PGA_Stop
R_PGA_Reset
R_PGA_Set_PowerOff
r_cg_pga_user.c
R_PGA_Create_UserInit
r_cg_pga.h
Comparator
r_cg_comp.c
R_COMP_Create
R_COMPn_Start
R_COMPn_Stop
R_COMP_Reset
R_COMP_Set_PowerOff
r_cg_comp_user.c
R_COMP_Create_UserInit
r_compn_interrupt
r_cg_comp.h
Comparator/ProgrammableGainAmplifier
r_cg_comppga.c
R_COMPPGA_Create
R_COMPPGA_Set_PowerOff
R_PWMOPT_Start
R_PWMOPT_Stop
r_cg_comppga_user.c
R_COMPPGA_Create_UserInit
r_cg_comppga.h
Serial array unit
r_cg_serial.c or r_cg_sau.c
R_SAUm_Create
R_SAUm_Reset
R_SAUm_Set_PowerOff
R_SAUm_Set_SnoozeOn
R_SAUm_Set_SnoozeOff
R_UARTn_Create
R_UARTn_Start
R_UARTn_Stop
R_UARTn_Send
R_UARTn_Receive
R_CSImn_Create
R_CSImn_Start
R_CSImn_Stop
R_CSImn_Send
R_CSImn_Receive
R_CSImn_Send_Receive
R_IICmn_Create
R_IICmn_StartCondition
R_IICmn_StopCondition
R_IICmn_Stop
R_IICmn_Master_Send
R_IICmn_Master_Receive
r_cg_serial_user.c or r_cg_sau_user.c
R_SAUm_Create_UserInit
r_uartn_interrupt_send
r_uartn_interrupt_receive
r_uartn_interrupt_error
r_uartn_callback_sendend
r_uartn_callback_receiveend
r_uartn_callback_error
r_uartn_callback_softwareoverrun
r_csimn_interrupt
r_csimn_callback_sendend
r_csimn_callback_receiveend
r_csimn_callback_error
r_iicmn_interrupt
r_iicmn_callback_master_sendend
r_iicmn_callback_master_receiveend
r_iicmn_callback_master_error
r_cg_serial.h or r_cg_sau.h
Serial array unit 4
r_cg_serial.c
R_DALIn_Create
R_DALIn_Start
R_DALIn_Stop
R_DALIn_Send
R_DALIn_Receive
r_cg_serial_user.c
r_dalin_interrupt_send
r_dalin_interrupt_receive
r_dalin_interrupt_error
r_dalin_callback_sendend
r_dalin_callback_receiveend
r_dalin_callback_error
r_dalin_callback_softwareoverrun
r_cg_serial.h
Asynchronous serial interface LIN-UART
R_UARTFn_Create
R_UARTFn_Start
R_UARTFn_Stop
R_UARTFn_Set_PowerOff
R_UARTFn_Send
R_UARTFn_Receive
R_UARTFn_Set_DataComparisonOn
R_UARTFn_Set_DataComparisonOff
R_UARTFn_Create_UserInit
r_uartfn_interrupt_send
r_uartfn_interrupt_receive
r_uartfn_interrupt_error
r_uartfn_callback_sendend
r_uartfn_callback_receiveend
r_uartfn_callback_error
r_uartfn_callback_softwareoverrun
r_uartfn_callback_expbitdetect
r_uartfn_callback_idmatch
Serial interface IICA
r_cg_serial.c or r_cg_iica.c
R_IICAn_Create
R_IICAn_StopCondition
R_IICAn_Stop
R_IICAn_Reset
R_IICAn_Set_PowerOff
R_IICAn_Master_Send
R_IICAn_Master_Receive
R_IICAn_Slave_Send
R_IICAn_Slave_Receive
R_IICAn_Set_SnoozeOn
R_IICAn_Set_SnoozeOff
R_IICAn_Set_WakeupOn
R_IICAn_Set_WakeupOff
r_cg_serial_user.c or r_cg_iica_user.c
R_IICAn_Create_UserInit
r_iican_interrupt
r_iican_callback_master_sendend
r_iican_callback_master_receiveend
r_iican_callback_master_error
r_iican_callback_slave_sendend
r_iican_callback_slave_receiveend
r_iican_callback_slave_error
r_iican_callback_getstopcondition
r_cg_serial.h or r_cg_iica.h
LCD controller/driver
r_cg_lcd.c
R_LCD_Create
R_LCD_Start
R_LCD_Stop
R_LCD_Set_VoltageOn
R_LCD_Set_VoltageOff
R_LCD_Set_PowerOff
R_LCD_VoltageOn
R_LCD_VoltageOff
r_cg_lcd_user.c
R_LCD_Create_UserInit
r_lcd_interrupt
r_cg_lcd.h
Sound generator
r_cg_sg.c
R_SG_Create
R_SG_Start
R_SG_Stop
r_cg_sg_user.c
R_SG_Create_UserInit
r_sg_interrupt
r_cg_sg.h
DMA controller
r_cg_dmac.c
R_DMACn_Create
R_DMAC_Create
R_DMACn_Start
R_DMACn_Stop
R_DMACn_Set_SoftwareTriggerOn
r_cg_dmac_user.c
R_DMACn_Create_UserInit
R_DMAC_Create_UserInit
r_dmacn_interrupt
r_cg_dmac.h
Data transfer controller
r_cg_dtc.c
R_DTC_Create
R_DTCn_Start
R_DTCn_Stop
R_DTC_Set_PowerOff
r_cg_dtc_user.c
R_DTC_Create_UserInit
r_cg_dtc.h
Event link controller
r_cg_elc.c
R_ELC_Create
R_ELC_Stop
r_cg_elc_user.c
R_ELC_Create_UserInit
r_cg_elc.h
Interrupt functions
r_cg_intc.c
R_INTC_Create
R_INTCn_Start
R_INTCn_Stop
R_INTCLRn_Start
R_INTCLRn_Stop
R_INTRTCICn_Start
R_INTRTCICn_Stop
R_INTFO_Start
R_INTFO_Stop
R_INTFO_ClearFlag
r_cg_intc_user.c
R_INTC_Create_UserInit
r_intcn_interrupt
r_intclrn_interrupt
r_intrtcicn_interrupt
r_intfo_interrupt
r_cg_intc.h
Key interrupt function
r_cg_intc.c or r_cg_key.c
R_KEY_Create
R_KEY_Start
R_KEY_Stop
r_cg_intc_user.c or r_cg_key_user.c
R_KEY_Create_UserInit
r_key_interrupt
r_cg_intc.h or r_cg_key.h
Voltage detector
r_cg_lvd.c
R_LVD_Create
R_LVD_InterruptMode_Start
R_LVD_Start_VDD
R_LVD_Start_VBAT
R_LVD_Start_VRTC
R_LVD_Start_EXLVD
R_LVD_Stop_VDD
R_LVD_Stop_VBAT
R_LVD_Stop_EXLVD
R_LVI_Create
R_LVI_InterruptMode_Start
r_cg_lvd_user.c
R_LVD_Create_UserInit
r_lvd_interrupt
r_lvd_vddinterrupt
r_lvd_vbatinterrupt
r_lvd_vrtcinterrupt
r_lvd_exlvdinterrupt
R_LVI_Create_UserInit
r_lvi_interrupt
r_cg_lvd.h
Battery backup function
r_cg_bup.c
R_BUP_Create
R_BUP_Start
R_BUP_Stop
r_cg_bup_user.c
R_BUP_Create_UserInit
r_bup_interrupt
r_cg_bup.h
Oscillation stop detector
r_cg_osdc.c
R_OSDC_Create
R_OSDC_Start
R_OSDC_Stop
R_OSDC_Set_PowerOff
R_OSDC_Reset
r_cg_osdc_user.c
R_OSDC_Create_UserInit
r_osdc_interrupt
r_cg_osdc.h
SPI interface
r_cg_saic.c
R_SAIC_Create
R_SAIC_Write
R_SAIC_Read
r_cg_saic_user.c
R_SAIC_Create_UserInit
r_cg_saic.h
Operational amplifier
r_cg_opamp.c
R_OPAMP_Create
R_OPAMP_Set_ReferenceCurcuitOn
R_OPAMP_Set_ReferenceCircuitOff
R_OPAMPn_Start
R_OPAMPn_Stop
R_OPAMPn_Set_PrechargeOn
R_OPAMPn_Set_PrechargeOff
R_OPAMP_Create_UserInit
Data operation circuit
r_cg_doc.c
R_DOC_Create
R_DOC_SetMode
R_DOC_WriteData
R_DOC_GetResult
R_DOC_ClearFlag
R_DOC_Set_PowerOff
R_DOC_Reset
r_cg_doc_user.c
R_DOC_Create_UserInit
r_doc_interrupt
r_cg_doc.h
32-bit Multiply-accumulator
r_cg_mac32bit.c
R_MAC32Bit_Create
R_MAC32Bit_Reset
R_MAC32Bit_Set_PowerOff
R_MAC32bit_MULUnsigned
R_MAC32Bit_MULSigned
R_MAC32Bit_MACUnsigned
R_MAC32Bit_MACSigned
r_cg_mac32bit_user.c
R_MAC32Bit_Create_UserInit
r_mac32bit_interrupt_flow
r_cg_mac32bit.h
12-bit A/D converter
r_cg_12adc.c
R_12ADC_Create
R_12ADC_Start
R_12ADC_Stop
R_12ADC_Get_ValueResult
R_12ADC_Set_ADChannel
R_12ADC_TemperatureSensorOutput_On
R_12ADC_TemperatureSensorOutput_Off
R_12ADC_InternalReferenceVoltage_On
R_12ADC_InternalReferenceVoltage_Off
R_12ADC_Set_PowerOff
r_cg_12adc_user.c
R_12ADC_Create_UserInit
r_12adc_interrupt
r_cg_12adc.h
12-bit D/A converter
r_cg_12da.c
R_12DA_Create
R_12DAn_Start
R_12DAn_Stop
R_12DA_Set_PowerOff
R_12DAn_Set_ConversionValue
r_cg_12da_user.c
R_12DA_Create_UserInit
r_cg_12da.h
Operational amplifier and Analog switch
r_cg_ampansw.c
R_AMPANSW_Create
R_OPAMPm_Set_ReferenceCurcuitOn
R_OPAMPm_Set_ReferenceCircuitOff
R_OPAMPm_Start
R_OPAMPm_Stop
R_ANSW_ChargePumpm_On
R_ANSW_ChargePumpm_Off
r_cg_ampansw_user.c
R_AMPANSW_Create_UserInit
r_cg_ampansw.h
Voltage reference
r_cg_vr.c
R_VR_Create
R_VR_Start
R_VR_Stop
r_cg_vr_user.c
R_VR_Create_UserInit
r_cg_vr.h
*1 In case of [API output control] setting are default ([Output all API functions according to the setting]).
A:Output by settings on each peripheral functions panel automatically.
M:Output by the file used setting in API property.