Description

Below is a list of output file files by the Code Generator

Table 2.1 Output File List (1/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Common CCRX

r_cg_main.c

main

R_MAIN_UserInit

A

A

r_dbsct.c

-

-

r_cg_intprg.c

r_undefined_exception

r_privileged_exception

r_floatingpoint_exception

r_access_exception

r_nmi_exception

r_brk_exception

r_reserved_exception

r_icu_group_n_interrupt

A

A

A

A

A

A

A

A

r_cg_resetprg.c

PowerON_Reset

PowerON_Reset_PC

A

A

r_cg_sbrk.c

-

-

r_cg_vecttbl.c

-

-

r_cg_sbrk.h

-

-

r_cg_stacksct.h

-

-

r_cg_vect.h

-

-

r_cg_hardware_setup.c

HardwareSetup

R_Systeminit

A

A

r_cg_macrodriver.h

-

-

r_cg_userdefine.h

-

-

Common IAR(ICCRX)

r_cg_main.c

main

R_MAIN_UserInit

A

A

r_cg_intprg.c

r_brk_exception

r_icu_group_n_interrupt

_NMI_handler

A

A

A

r_cg_systeminit.c

R_Systeminit

_low_level_init

A

A

r_cg_macrodriver.h

-

-

r_cg_userdefine

-

-

Table 2.2 Output File List (2/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Common GNU(GCCRX)

r_cg_main.c

main

R_MAIN_UserInit

A

A

r_cg_vector_table.c

r_undefined_exception

r_reserved_exception

r_nmi_exception

r_brk_exception

r_icu_group_n_interrupt

A

A

A

A

A

r_cg_reset_program.asm

-

-

r_cg_interrupt_handlers.h

-

-

r_cg_hardware_setup.c

HardwareSetup

R_Systeminit

A

A

r_cg_macrodriver.h

-

-

r_cg_userdefine.h

-

-

Clock generation circuit

r_cg_cgc.c

R_CGC_Create

R_CGC_Set_ClockMode

A

M

r_cg_cgc_user.c

R_CGC_Create_UserInit

r_cgc_oscillation_stop_nmi_interrupt

r_cgc_oscillation_stop_interrupt

M

A

A

r_cg_cgc.h

-

-

Voltage detection circuit (LVDA)

r_cg_lvd.c

R_LVDn_Create

R_LVDn_Start

R_LVDn_Stop

A

A

A

r_cg_lvd_user.c

R_LVDn_Create_UserInit

r_lvd_lvdn_interrupt

M

A

r_cg_lvd.h

-

-

Clock frequency accuracy measure-

ment circuit (CAC)

r_cg_cac.c

R_CAC_Create

R_CAC_Start

R_CAC_Stop

A

A

A

r_cg_cac_user.c

R_CAC_Create_UserInit

r_cac_mendf_interrupt

r_cac_ferrf_interrupt

r_cac_ovff_interrupt

M

A

A

A

r_cg_cac.h

-

-

Low power consumption

r_cg_lpc.c

R_LPC_Create

R_LPC_AllModuleClockStop

R_LPC_ChangeSleepModeReturnClock

R_LPC_Sleep

R_LPC_DeepSleep

R_LPC_DeepSoftwareStandby

R_LPC_SoftwareStandby

R_LPC_ChangeOperatingPowerControl

A

A

A

A

A

A

A

A

r_cg_lpc_user.c

R_LPC_Create_UserInit

M

r_cg_lpc.h

-

-

Table 2.3 Output File List (3/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Interrupt controller (ICU)

r_cg_icu.c

R_ICU_Create

R_ICU_IRQn_Start

R_ICU_IRQn_Stop

R_ICU_Software_Start

R_ICU_Software2_Start

R_ICU_Software_Stop

R_ICU_Software2_Stop

R_ICU_SoftwareInterrupt_Generate

R_ICU_SoftwareInterrupt2_Generate

A

A

A

A

A

A

A

A

A

r_cg_icu_user.c

R_ICU_Create_UserInit

r_icu_irqn_interrupt

r_icu_software_interrupt

r_icu_software2_interrupt

r_icu_nmi_interrupt

M

A

A

A

A

r_cg_icu.h

-

-

Buses

r_cg_bsc.c

R_BSC_Create

R_BSC_Error_Monitoring_Start

R_BSC_Error_Monitoring_Stop

R_BSC_InitializeSDRAM

A

A

A

A

r_cg_bsc_user.c

R_BSC_Create_UserInit

r_bsc_buserr_interrupt

M

A

r_cg_bsc.h

-

-

DMA Controller(DMAC)

r_cg_dmac.c

R_DMAC_Create

R_DMACn_Start

R_DMACn_Stop

R_DMACn_Set_SoftwareTrigger

R_DMACn_Clear_SoftwareTrigger

A

A

A

A

A

r_cg_dmac_user.c

r_dmac_dmacni_interrupt

r_dmacn_callback_transfer_end

r_dmacn_callback_transfer_escape_end

R_DMAC_Create_UserInit

A

A

A

M

r_cg_dmac.h

-

-

Data transfer controller (DTC)

r_cg_dtc.c

R_DTC_Create

R_DTCm_Start

R_DTCm_Stop

A

A

A

r_cg_dtc_user.c

R_DTC_Create_UserInit

M

r_cg_dtc.h

-

-

Table 2.4 Output File List (4/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Event link controller (ELC)

r_cg_elc.c

R_ELC_Create

R_ELC_Start

R_ELC_Stop

R_ELC_GenerateSoftwareEvent

R_ELC_Set_PortBuffern

R_ELC_Get_PortBuffern

A

A

A

A

A

A

r_cg_elc_user.c

R_ELC_Create_UserInit

r_elc_elsrni_interrupt

M

A

r_cg_elc.h

-

-

I/O ports

r_cg_port.c

R_PORT_Create

A

r_cg_port_user.c

R_PORT_Create_UserInit

M

r_cg_port.h

-

-

Multi-function timer pulse unit 2

(MTU2)

r_cg_mtu2.c

R_MTU2_Create

R_MTU2_Cn_Start

R_MTU2_Cn_Stop

A

A

A

r_cg_mtu2_user.c

R_MTU2_Create_UserInit

r_mtu2_tgimn_interrupt

r_mtu2_cj_tgimn_interrupt

r_mtu2_tcivn_interrupt

r_mtu2_cj_tcivn_interrupt

r_mtu2_tciun_interrupt

M

A

A

A

A

A

r_cg_mtu2.h

-

-

Multi-function timer pulse unit 3

(MTU3)

r_cg_mtu3.c

R_MTU3_Create

R_MTU3_Cn_Start

R_MTU3_Cn_Stop

A

A

A

r_cg_mtu3_user.c

R_MTU3_Create_UserInit

r_mtu3_tgimn_interrupt

r_mtu3_cj_tgimn_interrupt

r_mtu3_tcivn_interrupt

r_mtu3_cj_tcivn_interrupt

r_mtu3_tciun_interrupt

M

A

A

A

A

A

r_cg_mtu3.h

-

-

Port output enable 2 (POE2)

r_cg_poe2.c

R_POE2_Create

R_POE2_Start

R_POE2_Stop

R_POE2_Set_HiZ_MTUn

R_POE2_Clear_HiZ_MTUn

A

A

A

A

A

r_cg_poe2_user.c

R_POE2_Create_UserInit

r_poe2_oein_interrupt

M

A

r_cg_poe2.h

-

-

Table 2.5 Output File List (5/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Port output enable 3 (POE3)

r_cg_poe3.c

R_POE3_Create

R_POE3_Start

R_POE3_Stop

R_POE3_Set_HiZ_MTUn

R_POE3_Clear_HiZ_MTUn

R_POE3_Set_HiZ_GPTn

R_POE3_Clear_HiZ_GPTn

A

A

A

A

A

A

A

r_cg_poe3_user.c

R_POE3_Create_UserInit

r_poe3_oein_interrupt

M

A

r_cg_poe3.h

-

-

General PWM timer (GPT)

r_cg_gpt.c

R_GPT_Create

R_GPTn_Start

R_GPTn_Stop

R_GPTn_HardwareStart

R_GPTn_HardwareStop

A

A

A

A

A

r_cg_gpt_user.c

R_GPT_Create_UserInit

r_gpt_gtcimn_interrupt

r_gpt_gtcivn_interrupt

r_gpt_gtciun_interrupt

r_gpt_gdten_interrupt

r_gpt_etgip_interrupt

r_gpt_etgin_interrupt

M

A

A

A

A

A

A

r_cg_gpt.h

-

-

16-bit timer pulse unit (TPU)

r_cg_tpu.c

R_TPU_Create

R_TPUn_Start

R_TPUn_Stop

A

A

A

r_cg_tpu_user.c

R_TPU_Create_UserInit

r_tpu_tginm_interrupt

r_tpu_tcinv_interrupt

r_tpu_tcinu_interrupt

M

A

A

A

r_cg_tpu.h

-

-

8-bit timer (TMR)

r_cg_tmr.c

R_TMR_Create

R_TMRn_Start

R_TMRn_Stop

A

A

A

r_cg_tmr_user.c

R_TMR_Create_UserInit

r_tmr_cmimn_interrupt

r_tmr_ovin_interrupt

M

A

A

r_cg_tmr.h

-

-

Programmable pulse generator (PPG)

r_cg_ppg.c

R_PPG_Create

A

r_cg_ppg_user.c

R_PPG_Create_UserInit

M

r_cg_ppg.h

-

-

Table 2.6 Output File List (6/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Compare match timer (CMT)

r_cg_cmt.c

R_CMTn_Create

R_CMTn_Start

R_CMTn_Stop

A

A

A

r_cg_cmt_user.c

R_CMTn_Create_UserInit

r_cmt_cmin_interrupt

M

A

r_cg_cmt.h

-

-

Compare match timer W (CMTW)

r_cg_cmtw.c

R_CMTWn_Create

R_CMTWn_Start

R_CMTWn_Stop

A

A

A

r_cg_cmtw_user.c

R_CMTWn_Create_UserInit

r_cmtw_cmwin_interrupt

r_cmtw_icmin_interrupt

r_cmtw_ocmin_interrupt

M

A

A

A

r_cg_cmtw.h

-

-

Realtime clock (RTC)

r_cg_rtc.c

R_RTC_Create

R_RTC_Set_CalendarAlarm

R_RTC_Set_BinaryAlarm

R_RTC_Set_ConstPeriodInterruptOn

R_RTC_Set_ConstPeriodInterruptOff

R_RTC_Set_CarryInterruptOn

R_RTC_Set_CarryInterruptOff

R_RTC_Set_RTCOUTOn

R_RTC_Set_RTCOUTOff

R_RTC_Start

R_RTC_Stop

R_RTC_Restart

R_RTC_Set_CalendarCounterValue

R_RTC_Get_CalendarCounterValue

R_RTC_Set_BinaryCounterValue

R_RTC_Get_BinaryCounterValue

R_RTC_Get_CalendarTimeCaptureValuen

R_RTC_Get_BinaryTimeCaptureValuen

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

r_cg_rtc_user.c

R_RTC_Create_UserInit

r_rtc_alm_interrupt

r_rtc_prd_interrupt

r_rtc_cup_interrupt

M

A

A

A

r_cg_rtc.h

-

-

Table 2.7 Output File List (7/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Watchdog timer (WDT)

r_cg_wdt.c

R_WDT_Create

R_WDT_Restart

A

A

r_cg_wdt_user.c

R_WDT_Create_UserInit

r_wdt_nmi_interrupt

r_wdt_wuni_interrupt

M

A

A

r_cg_wdt.h

-

-

Independent watchdog timer (IWDT)

r_cg_iwdt.c

R_IWDT_Create

R_IWDT_Restart

A

A

r_cg_iwdt_user.c

R_IWDT_Create_UserInit

r_iwdt_nmi_interrupt

r_iwdt_iwuni_interrupt

M

A

A

r_cg_iwdt.h

-

-

Serial communications interface (SCI)

r_cg_sci.c

R_SCIn_Create

R_SCIn_Start

R_SCIn_Stop

R_SCIn_Serial_Send

R_SCIn_Serial_Receive

R_SCIn_Serial_Multiprocessor_Send

R_SCIn_Serial_Multiprocessor_Receive

R_SCIn_Serial_Send_Receive

R_SCIn_SmartCard_Send

R_SCIn_SmartCard_Receive

R_SCIn_IIC_Master_Send

R_SCIn_IIC_Master_Receive

R_SCIn_SPI_Master_Send

R_SCIn_SPI_Master_Send_Receive

R_SCIn_SPI_Slave_Send

R_SCIn_SPI_Slave_Send_Receive

R_SCIn_IIC_StartCondition

R_SCIn_IIC_StopCondition

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

A

r_cg_sci_user.c

R_SCIn_Create_UserInit

r_scin_transmitend_interrupt

r_scin_transmit_interrupt

r_scin_receive_interrupt

r_scin_receiveerror_interrupt

r_scin_callback_transmitend

r_scin_callback_receiveend

r_scin_callback_receiveerror

M

A

A

A

A

A

A

A

r_cg_sci.h

-

-

Table 2.8 Output File List (8/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

FIFO embedded serial communica-

tions interface (SCIFA)

r_cg_scifa.c

R_SCIFAn_Create

R_SCIFAn_Start

R_SCIFAn_Stop

R_SCIFAn_Serial_Send

R_SCIFAn_Serial_Receive

R_SCIFAn_Serial_Send_Receive

A

A

A

A

A

A

r_cg_scifa_user.c

R_SCIFAn_Create_UserInit

r_scifan_teif_interrupt

r_scifan_txif_interrupt

r_scifan_rxif_interrupt

r_scifan_erif_interrupt

r_scifan_brif_interrupt

r_scifan_drif_interrupt

r_scifan_callback_transmitend

r_scifan_callback_receiveend

r_scifan_callback_error

M

A

A

A

A

A

A

A

A

A

r_cg_scifa.h

-

-

I2C bus interface (RIIC)

r_cg_riic.c

R_RIICn_Create

R_RIICn_Start

R_RIICn_Stop

R_RIICn_Master_Send

R_RIICn_Master_Receive

R_RIICn_Slave_Send

R_RIICn_Slave_Receive

R_RIICn_StartCondition

R_RIICn_StopCondition

A

A

A

A

A

A

A

A

A

r_cg_riic_user.c

R_RIICn_Create_UserInit

r_riicn_error_interrupt

r_riicn_receive_interrupt

r_riicn_transmit_interrupt

r_riicn_transmitend_interrupt

r_riicn_callback_receiveerror

r_riicn_callback_transmitend

r_riicn_callback_receiveend

M

A

A

A

A

A

A

A

r_cg_riic.h

-

-

Table 2.9 Output File List (9/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

Serial peripheral interface (RSPI)

r_cg_rspi.c

R_RSPIn_Create

R_RSPIn_Start

R_RSPIn_Stop

R_RSPIn_Send

R_RSPIn_Send_Receive

A

A

A

A

A

r_cg_rspi_user.c

R_RSPIn_Create_UserInit

r_rspin_receive_interrupt

r_rspin_transmit_interrupt

r_rspin_error_interrupt

r_rspin_idle_interrupt

r_rspin_callback_receiveend

r_rspin_callback_error

r_rspin_callback_transmitend

M

A

A

A

A

A

A

A

r_cg_rspi.h

-

-

CRC calculator (CRC)

r_cg_crc.c

R_CRC_SetCRC8

R_CRC_SetCRC16

R_CRC_SetCCITT

R_CRC_SetCRC32

R_CRC_SetCRC32C

R_CRC_Input_Data

R_CRC_Get_Result

A

A

A

A

A

A

A

r_cg_crc.h

-

-

12-bit A/D converter (S12AD)

r_cg_s12ad.c

R_S12ADn_Create

R_S12ADn_Start

R_S12ADn_Stop

R_S12ADn_Get_ValueResult

R_S12ADn_Set_CompareValue

A

A

A

A

A

r_cg_s12ad_user.c

R_S12ADn_Create_UserInit

r_s12adn_interrupt

r_s12adn_groupb_interrupt

r_s12adn_compare_interrupt

M

A

A

A

r_cg_s12ad.h

-

-

D/A converter (DA)

r_cg_da.c

R_DA_Create

R_DAm_Start

R_DAm_Stop

R_DAm_Set_ConversionValue

A

A

A

A

r_cg_da_user.c

R_DA_Create_UserInit

M

r_cg_da.h

-

-

Table 2.10 Output File List (10/10)

Peripheral Function

File Name

API Function Name

out

put

(*1)

12-bit converter (R12DA)

r_cg_r12da.c

R_R12DA_Create

R_R12DAn_Start

R_R12DAn_Stop

R_R12DAn_Set_ConversionValue

R_R12DA_Sync_Start

R_R12DA_Sync_Stop

A

A

A

A

A

A

r_cg_r12da_user.c

R_R12DA_Create_UserInit

M

r_cg_r12da.h

-

-

Comparator B (CMPB)

r_cg_cmpb.c

R_CMPB_Create

R_CMPBn_Start

R_CMPBn_Stop

A

A

A

r_cg_cmpb_user.c

R_CMPB_Create_UserInit

r_cmpb_cmpbn_interrupt

M

A

r_cg_cmpb.h

-

-

Data operation circuit (DOC)

r_cg_doc.c

R_DOC_Create

R_DOC_SetMode

R_DOC_WriteData

R_DOC_GetResult

R_DOC_ClearFlag

A

A

A

A

A

r_cg_doc_user.c

R_DOC_Create_UserInit

r_doc_dopcf_interrupt

M

A

r_cg_doc.h

-

-

Low power timer (LPT)

r_cg_lpt.c

R_LPT_Create

R_LPT_Start

R_LPT_Stop

A

A

A

r_cg_lpt_user.c

R_LPT_Create_UserInit

M

r_cg_lpt.h

-

-

Comparator C (CMPC)

r_cg_cmpc.c

R_CMPC_Create

R_CMPCn_Start

R_CMPCn_Stop

A

A

A

r_cg_cmpc_user.c

R_CMPC_Create_UserInit

r_cmpc_cmpcn_interrupt

M

A

r_cg_cmpc.h

-

-

LCD controller / driver (LCD)

r_cg_lcd.c

R_LCD_Create

R_LCD_Start

R_LCD_Stop

R_LCD_Voltage_On

R_LCD_Voltage_Off

A

A

A

A

A

r_cg_lcd_user.c

R_LCD_Create_UserInit

M

r_cg_lcd.h

-

-

*1 In case of [API output control] setting are default ([Output all API functions according to the setting]).

AOutput by settings on each peripheral functions panel automatically.

MOutput by the file used setting in API property.