ルネサス
以下に,コード生成ツールが出力するファイルの一覧を示します。
表 2.1
出力ファイル
周辺機能
ファイル名
API関数名
共 通
r_main.c,またはr_cg_main.c
main
R_MAIN_UserInit
r_systeminit.c,またはr_cg_systeminit.c
hdwinit
R_Systeminit
r_cg_macrodriver.h
−
r_cg_userdefine.h
クロック発生回路
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
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
ポート機能
r_cg_port.c
R_PORT_Create
r_cg_port_user.c
R_PORT_Create_UserInit
r_cg_port.h
高速オンチップ・オシレータ・クロック周波数補正機能
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
タイマ・アレイ・ユニット
r_cg_timer.c,または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_Set_PowerOff
R_TAUm_Channeln_Get_PulseWidth
R_TAUm_Channeln_Set_SoftwareTriggerOn
r_cg_timer_user.c,またはr_cg_tau_user.c
R_TAUm_Create_UserInit
r_taum_channeln_interrupt
r_taum_channeln_higher8bits_interrupt
r_cg_timer.h,またはr_cg_tau.h
タイマRJ
r_cg_timer.c,またはr_cg_tmrj.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_cg_tmrj_user.c
R_TMR_RJ0_Create_UserInit
r_tmr_rj0_interrupt
R_TMRJ0_Create_UserInit
r_tmrj0_interrupt
r_cg_timer.h,またはr_cg_tmrj.h
タイマRD
r_cg_timer.c,またはr_cg_tmrd.c
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_cg_timer_user.c,またはr_cg_tmrd_user.c
R_TMR_RDn_Create_UserInit
r_tmr_rdn_interrupt
R_TMRDn_Create_UserInit
r_tmrdn_interrupt
r_cg_timer.h,またはr_cg_tmrd.h
タイマRG
r_cg_timer.c
R_TMR_RG0_Create
R_TMR_RG0_Start
R_TMR_RG0_Stop
R_TMR_RG0_Set_PowerOff
R_TMR_RG0_Get_PulseWidth
r_cg_timer_user.c
R_TMR_RG0_Create_UserInit
r_tmr_rg0_interrupt
r_cg_timer.h
タイマRX
r_cg_tmrx.c
R_TMRX_Create
R_TMRX_Start
R_TMRX_Stop
R_TMRX_Get_BufferValue
R_TMRX_Set_PowerOff
r_cg_tmrx_user.c
R_TMRX_Create_UserInit
r_tmrx_interrupt
r_cg_tmrx.h
16ビット・タイマKB
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_Create_UserInit
r_tmr_kbm_interrupt
16ビット・タイマ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ビット・タイマ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
リアルタイム・クロック
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_CalenderAlarmValue
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_cg_rtc.h
サブシステム・クロック周波数測定回路
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ビット・インターバル・タイマ
r_cg_it.c
R_IT_Create
R_IT_Start
R_IT_Stop
R_IT_Set_PowerOff
r_cg_it_user.c
R_IT_Create_UserInit
r_it_interrupt
r_cg_it.h
8ビット・インターバル・タイマ
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ビット・ウエイクアップ・タイマ
R_WUTM_Create
R_WUTM_Start
R_WUTM_Stop
R_WUTM_Set_PowerOff
R_WUTM_Create_UserInit
r_wutm_interrupt
クロック出力/ブザー出力制御回路
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
ウォッチドッグ・タイマ
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ビットΔΣA/Dコンバータ
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コンバータ
r_cg_adc.c
R_ADC_Create
R_ADC_Set_OperationOn
R_ADC_Set_OperationOff
R_ADC_Start
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
コンフィギュラブル・アンプ
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
温度センサ
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ビットΔΣA/Dコンバータ
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コンバータ
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_cg_dac_user.c
R_DAC_Create_UserInit
r_cg_dac.h
プログラマブル・ゲイン・アンプ
r_cg_pga.c
R_PGA_Create
R_PGA_Start
R_PGA_Stop
r_cg_pga_user.c
R_PGA_Create_UserInit
r_cg_pga.h
コンパレータ
r_cg_comp.c
R_COMP_Create
R_COMPn_Start
R_COMPn_Stop
R_COMP_Set_PowerOff
r_cg_comp_user.c
R_COMP_Create_UserInit
r_compn_interrupt
r_cg_comp.h
コンパレータ/プログラマブル・ゲイン・アンプ
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
シリアル・アレイ・ユニット
r_cg_serial.c,または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,または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,またはr_cg_sau.h
シリアル・アレイ・ユニット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
アシンクロナス・シリアル・インタフェース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
シリアル・インタフェースIICA
r_cg_serial.c,または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,または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,またはr_cg_iica.h
LCDコントローラ/ドライバ
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_cg_lcd_user.c
R_LCD_Create_UserInit
r_lcd_interrupt
r_cg_lcd.h
サウンド・ジェネレータ
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コントローラ
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
データ・トランスファ・コントローラ
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
イベントリンクコントローラ
r_cg_elc.c
R_ELC_Create
R_ELC_Stop
r_cg_elc_user.c
R_ELC_Create_UserInit
r_cg_elc.h
割り込み機能
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_cg_intc_user.c
R_INTC_Create_UserInit
r_intcn_interrupt
r_intclrn_interrupt
r_intrtcicn_interrupt
r_cg_intc.h
キー割り込み機能
R_KEY_Create
R_KEY_Start
R_KEY_Stop
R_KEY_Create_UserInit
r_key_interrupt
電圧検出回路
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_VRTC
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
バッテリ・バックアップ機能
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
発振停止検出回路
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インタフェース
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
オペアンプ
r_cg_opamp.c
R_OPAMP_Create
R_OPAMP_Set_ReferenceCircuitOn
R_OPAMP_Set_ReferenceCircuitOff
R_OPAMPn_Start
R_OPAMPn_Stop
R_OPANPn_Set_PrechargeOn
r_cg_opamp_user.c
R_OPAMP_Create_UserInit
r_cg_opamp.h
−................................................
データ演算回路
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ビット積和演算回路
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