以下に,コード生成ツールが出力するファイルの一覧を示します。
表 2.1
出力ファイル
周辺機能
ファイル名
API関数名
共 通
r_cg_main.c
main
R_MAIN_UserInit
r_cg_systeminit.c
R_SystemInit
r_cg_macrodriver.h
-
r_cg_userdefine.h
r_cg_intvector.c
クロックコントローラ
r_cg_cgc.c
R_CGC_Create
R_CGC_CK_Output_Enable
R_CGC_CK_Output_Disable
r_cg_cgc_user.c
R_CGC_Create_UserInit
r_cg_cgc.h
ポート機能
r_cg_port.c
R_PORT_Create
r_cg_port_user.c
R_PORT_Create_UserInit
r_cg_port.h
割り込み
r_cg_intc.c
R_INTC_Create
R_IRQn_Start
R_IRQn_Stop
R_SINTn_Start
R_SINTn_Stop
R_SINTn_TriggerOn
R_INTPn_Start
R_INTPn_Stop
r_cg_intc_user.c
R_INTC_Create_UserInit
r_nmi_interrupt
r_irqn_interrupt
r_sintn_interrupt
r_intpn_interrupt
r_cg_intc.h
DMAC
r_cg_dmac.c
R_DMACn_Create
R_DMACn_Suspend
R_DMACn_Resume
R_DMACnm_Create
R_DMACnm_Start
R_DMACnm_Stop
R_DMACnm_Set_SoftwareTrigger
R_DMACnm_Suspend
R_DMACnm_Resume
r_cg_dmac_user.c
R_DMACn_Create_UserInit
r_dmacnm_interrupt
r_dmacnm_callback_transfer_completion
r_dmacnm_callback_transfer_count_match
r_cg_dmac.h
DTS
r_cg_dts.c
R_DTS_Create
R_DTS_Suspend
R_DTS_Resume
R_DTS_All_Stop
R_DTSx_y_Stop_Interrupt
R_DTSm_Create
R_DTSm_Start
R_DTSm_Stop
R_DTSm_Set_SoftwareTrigger
R_DTSm_Suspend
R_DTSm_Resume
r_cg_dts_user.c
R_DTS_Create_UserInit
R_DTSm_Create_UserInit
r_dtsx_y_transfer_match_interrupt
r_dtsx_y_transfer_completion_interrupt
r_cg_dts.h
クロック同期シリアルインタフェースG
r_cg_csig.c
R_CSIGm_Create
R_CSIGm_Start
R_CSIGm_Stop
R_CSIGm_Send
R_CSIGm_Receive
r_cg_csig_user.c
R_CSIGm_Create_UserInit
r_csigm_interrupt_receive
r_csigm_interrupt_error
r_csigm_interrupt_send
r_csigm_callback_receiveend
r_csigm_callback_sendend
r_csigm_callback_error
r_cg_csig.h
クロック同期シリアルインタフェースH
r_cg_csih.c
R_CSIHm_Create
R_CSIHm_Start
R_CSIHm_Stop
R_CSIHm_Master_Send
R_CSIHm_Master_Receive
R_CSIHm_Slave_Send
R_CSIHm_Slave_Receive
R_CSIHm_Extended_Data_Master_Send
R_CSIHm_Extended_Data_Master_Receive
R_CSIHm_Extended_Data_Slave_Send
R_CSIHm_Extended_Data_Slave_Receive
r_cg_csih_user.c
R_CSIHm_Create_UserInit
r_csihm_interrupt_receive
r_csihm_interrupt_error
r_csihm_interrupt_send
r_csihm_interrupt_jobend
r_csihm_callback_receiveend
r_csihm_callback_sendend
r_csihm_callback_error
r_cg_csih.h
シリアルコミュニケーションインタフェース3
r_cg_sci3.c
R_SCI3m_Create
R_SCI3m_Start
R_SCI3m_Stop
R_SCI3m_Send
R_SCI3m_Receive
R_SCI3m_Multiprocessor_Send
R_SCI3m_Multiprocessor_Receive
r_cg_sci3_user.c
R_SCI3m_Create_UserInit
r_sci3m_interrupt_receive
r_sci3m_interrupt_error
r_sci3m_interrupt_send
r_sci3m_interrupt_sendend
r_sci3m_callback_receiveend
r_sci3m_callback_sendend
r_sci3m_callback_error
r_cg_sci3.h
UARTインタフェース
r_cg_uart.c
R_UARTm_Create
R_UARTm_Start
R_UARTm_Stop
R_UARTm_Send
R_UARTm_Receive
r_cg_uart_user.c
R_UARTm_Create_UserInit
r_uartm_interrupt_receive
r_uartm_interrupt_error
r_uartm_interrupt_send
r_uartm_callback_receiveend
r_uartm_callback_sendend
r_uartm_callback_error
r_cg_uart.h
ウィンドウウォッチドッグタイマ
r_cg_wdt.c
R_WDTm_Create
R_WDTm_Restart
r_cg_wdt_user.c
R_WDTm_Create_UserInit
r_wdtm_interrupt
r_cg_wdt.h
OSタイマ
r_cg_ostm.c
R_OSTMm_Create
R_OSTMm_Start
R_OSTMm_Stop
R_OSTMm_Set_CompareValue
r_cg_ostm_user.c
R_OSTMm_Create_UserInit
r_ostmm_interrupt
r_cg_ostm.h
アドバンストタイマユニットⅣ
r_cg_atuiv.c
R_ATUIV_Common_Create
R_ATUIV_Timerkn_Create
R_ATUIV_Timerk_OperationOn
R_ATUIV_Timerk_OperationOff
R_ATUIV_Timerknm_Start
R_ATUIV_Timerknm_Stop
R_ATUIV_Timerknm_Get_PulseWidth
R_ATUIV_Timerknm_Get_CaptureValue
R_ATUIV_Timerknm_Set_Compare_Match
R_ATUIV_Timerknm_Set_One_Shot_Pulse
R_ATUIV_Timerknm_Forced_Compare_Match
R_ATUIV_Timerknm_Forced_Output_Compare_Match
R_ATUIV_Timerknm_Start_Down_Count
R_ATUIV_Timerknm_Get_InputCapturex
R_ATUIV_Timerknm_xpin_Output_Nomal
R_ATUIV_Timerknm_xpin_Output_Low
R_ATUIV_Timerknm_xpin_Output_High
R_ATUIV_Timerknm_Get_Count
R_ATUIV_Timerknm_Get_PWM_Measure_Value
R_ATUIV_Timerknm_Get_Measure_Value
R_ATUIV_Timerknm_Reset_FIFO
r_cg_atuiv_user.c
R_ATUIV_Common_Create_UserInit
R_ATUIV_Timerkn_Create_UserInit
r_atuiv_timerknm_overflow_interrupt
r_atuiv_timerknm_interrupt
r_atuiv_timerknm_icrnx_interrupt
r_atuiv_timerknm_ocrnx_interrupt
r_atuiv_timerknm_tcntnx_interrupt
r_atuiv_timerknm_cmfnx_interrupt
r_atuiv_timerknm_callback_ocrc
r_atuiv_timerknm_callback_grc
r_atuiv_timerknm_underflow_interrupt
r_atuiv_timerknm_comparex_interrupt
r_atuiv_timerknm_callback_overflow
r_atuiv_timerknm_callback_cycle
r_atuiv_timerknm_callback_duty
r_atuiv_timerknm_fifo_overflow_interrupt
r_atuiv_timerknm_fifo_datafull_interrupt
r_atuiv_timerknm_tcntk_overflow_interrupt
r_cg_atuiv.h
タイマ・アレイ・ユニットB
r_cg_taub.c
R_TAUBn_Create
R_TAUBn_Channelm_Start
R_TAUBn_Channelm_Stop
R_TAUBn_Channelm_Get_PulseWidth
r_cg_taub_user.c
R_TAUBn_Create_UserInit
r_taubn_channelm_interrupt
r_cg_taub.h
タイマ・アレイ・ユニットD
r_cg_taud.c
R_TAUDn_Create
R_TAUDn_Channelm_Start
R_TAUDn_Channelm_Stop
R_TAUDn_Channelm_Get_PulseWidth
r_cg_taud_user.c
R_TAUDn_Create_UserInit
r_taudn_channelm_interrupt
r_cg_taud.h
タイマ・アレイ・ユニットJ
r_cg_tauj.c
R_TAUJn_Create
R_TAUJn_Channelm_Start
R_TAUJn_Channelm_Stop
R_TAUJn_Channelm_Get_PulseWidth
r_cg_tauj_user.c
R_TAUJn_Create_UserInit
r_taujn_channelm_interrupt
r_cg_tauj.h
タイマオプション
r_cg_tapa.c
R_TAPAm_Create
R_TAPAm_Start
R_TAPAm_Stop
R_TAPAm_Trigger_Start
R_TAPAm_Trigger_Stop
r_cg_tapa_user.c
R_TAPAm_Create_UserInit
r_cg_tapa.h
ペリフェラルインターコネクション
r_cg_pic.c
R_PICn_Create
R_PICn_Timer_SyncStart
r_cg_pic_user.c
R_PICn_Create_UserInit
r_cg_pic.h
ADコンバータ
r_cg_adc.c
R_ADCn_Create
R_ADCn_Halt
R_ADCn_SetMultiplexerCommand
R_ADCn_ScanGroupm_Start
R_ADCn_ScanGroupm_GetResult
R_ADCn_ScanGroupm_GetFloatingPointDataResult
R_ADCn_ScanGroupm_TimerStart
R_ADCn_ScanGroupm_TimerStop
R_ADCn_ADCSummation_Cannelm_GetResult
R_ADCn_ADCSummation_Start
R_ADCn_ADCSummation_Stop
R_ADC_SyncStart
R_ADC_SyncTimerStart
R_ADCn_ScanGroupm_OperationOn
R_ADCn_TH_Groupx_Start
R_ADCn_TH_Sampling_Start
r_cg_adc_user.c
R_ADCn_Create_UserInit
r_adcn_error_interrupt
r_adcn_scan_groupm_end_interrupt
r_adcn_multiplexer_request_interrupt
r_adcn_adc_summation_channelm_end_interrupt
r_cg_adc.h
ΔΣADコンバータ
r_cg_dsadc.c
R_DSADC_Create
R_DSADC_SyncStart
R_DSADCm_Start
R_DSADCm_Stop
R_DSADCm_GetResult
r_cg_dsadc_user.c
R_DSADC_Create_UserInit
r_dsadc_error_interrupt
r_cg_dsadc.h
デジタルフィルタ
r_cg_dfe.c
R_DFE_Create
R_DFE_Set_SoftwareData
R_DFE_Generate_SoftwareTrigger
R_DFE_Channelm_Create
R_DFE_Channelm_Enable
R_DFE_Channelm_Disable
R_DFE_Channelm_GetResult
r_cg_dfe_user.c
R_DFE_Create_UserInit
r_dfe_error_interrupt
R_DFE_Channelm_Create_UserInit
r_dfe_channelm_interrupt
r_dfe_channelm_callback_output_data
r_dfe_channelm_callback_condition_match
r_cg_dfe.h
データCRC
r_cg_dcra.c
R_DCRAn_Create
R_DCRAn_Input32bitData
R_DCRAn_Input16bitData
R_DCRAn_Input8bitData
R_DCRAn_GetResult_32bitData
R_DCRAn_GetResult_16bitData
r_cg_dcra_user.c
R_DCRAn_Create_UserInit
r_cg_dcra.h
リアルタイムクロック
r_cg_rtca.c
R_RTC_Create
R_RTC_Start
R_RTC_Stop
R_RTC_Set_HourSystem
R_RTC_Set_CounterValue
R_RTC_Get_CounterValue
R_RTC_Set_AlarmOn
R_RTC_Set_AlarmOff
R_RTC_Set_AlarmValue
R_RTC_Get_AlarmValue
R_RTC_Set_ConstPeriodInterruptOn
R_RTC_Set_ConstPeriodInterruptOff
R_RTC_Set_1secondInterruptOn
R_RTC_Set_1secondInterruptOff
R_RTC_Set_RTC1HZOn
R_RTC_Set_RTC1HZOff
r_cg_rtca_user.c
R_RTC_Create_UserInit
r_rtc_interrupt_periodic
r_rtc_interrupt_alarm
r_rtc_interrupt_1second
r_cg_rtca.h
キーリターン
r_cg_key.c
R_KEY_Create
R_KEY_Start
R_KEY_Stop
r_cg_key_user.c
R_KEY_Create_UserInit
r_key_interrupt
r_cg_key.h
スタンバイコントローラ
r_cg_stbc.c
R_STBC_Start_Stop_Mode
R_STBC_Prepare_Stop_Mode
R_STBC_Start_Deep_Stop_Mode
R_STBC_Prepare_Deep_Stop_Mode
R_STBC_Deep_Stop_Loop
r_cg_stbc_user.c
R_STBC_Prepare_Stop_Mode_Set_Peripheral
R_STBC_Prepare_Stop_Mode_Set_Interrupt
R_STBC_Prepare_Stop_Mode_Set_Clock_Mask
R_STBC_Prepare_Stop_Mode_Set_Clock_Source
R_STBC_Prepare_Deep_Stop_Mode_Set_Peripheral
R_STBC_Prepare_Deep_Stop_Mode_Set_Interrupt
r_cg_stbc.h