您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ IEN函数代码示例

51自学网 2021-06-01 21:28:32
  C++
这篇教程C++ IEN函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中IEN函数的典型用法代码示例。如果您正苦于以下问题:C++ IEN函数的具体用法?C++ IEN怎么用?C++ IEN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了IEN函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: MSTP

HalSci5::HalSci5(){	int i;	PORTC.ICR.BIT.B2 = 1;	PORTC.DDR.BIT.B2 = 0;	PORTC.DDR.BIT.B3 = 1;	MSTP(SCI5) = 0;	SCI5.SCR.BYTE = 0x00;	SCI5.SMR.BYTE = 0x00;	SCI5.SCMR.BIT.SMIF= 0;	SCI5.SCMR.BIT.SINV= 0;	SCI5.SCMR.BIT.SDIR= 0;	SCI5.BRR = 12;	//SCI5.SEMR.BIT.ABCS = 1;	for(i=0;i<0x800000;i++);	SCI5.SCR.BYTE = 0x30;	SCI5.SCR.BIT.TE=1;	SCI5.SCR.BIT.TIE=1;	SCI5.SCR.BIT.RE=1;	SCI5.SCR.BIT.RIE=1;	IEN(SCI5,RXI5)=0;	IEN(SCI5,TXI5)=1;	IPR(SCI5,TXI5)=GeneralConfig::gpsIpr;	IPR(SCI5,RXI5)=GeneralConfig::gpsIpr;}
开发者ID:sa-tsuklog,项目名称:PBGlider,代码行数:34,


示例2: vInitialiseTimerForIntQueueTest

void vInitialiseTimerForIntQueueTest( void ){	/* Ensure interrupts do not start until full configuration is complete. */	portENTER_CRITICAL();	{		/* Give write access. */		SYSTEM.PRCR.WORD = 0xa502;		/* Cascade two 8bit timer channels to generate the interrupts. 		8bit timer unit 1 (TMR0 and TMR1) and 8bit timer unit 2 (TMR2 and TMR3 are		utilised for this test. */		/* Enable the timers. */		SYSTEM.MSTPCRA.BIT.MSTPA5 = 0;		SYSTEM.MSTPCRA.BIT.MSTPA4 = 0;		/* Enable compare match A interrupt request. */		TMR0.TCR.BIT.CMIEA = 1;		TMR2.TCR.BIT.CMIEA = 1;		/* Clear the timer on compare match A. */		TMR0.TCR.BIT.CCLR = 1;		TMR2.TCR.BIT.CCLR = 1;		/* Set the compare match value. */		TMR01.TCORA = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / tmrTIMER_0_1_FREQUENCY ) -1 ) / 8 );		TMR23.TCORA = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / tmrTIMER_0_1_FREQUENCY ) -1 ) / 8 );		/* 16 bit operation ( count from timer 1,2 ). */		TMR0.TCCR.BIT.CSS = 3;		TMR2.TCCR.BIT.CSS = 3;			/* Use PCLK as the input. */		TMR1.TCCR.BIT.CSS = 1;		TMR3.TCCR.BIT.CSS = 1;			/* Divide PCLK by 8. */		TMR1.TCCR.BIT.CKS = 2;		TMR3.TCCR.BIT.CKS = 2;		/* Enable TMR 0, 2 interrupts. */		TMR0.TCR.BIT.CMIEA = 1;		TMR2.TCR.BIT.CMIEA = 1;		/* Set interrupt priority and enable. */		IPR( TMR0, CMIA0 ) = configMAX_SYSCALL_INTERRUPT_PRIORITY - 1;		IR( TMR0, CMIA0 ) = 0U;		IEN( TMR0, CMIA0 ) = 1U;		/* Do the same for TMR2, but to vector 129. */		IPR( TMR2, CMIA2 ) = configMAX_SYSCALL_INTERRUPT_PRIORITY - 2;		IR( TMR2, CMIA2 ) = 0U;		IEN( TMR2, CMIA2 ) = 1U;	}	portEXIT_CRITICAL();}
开发者ID:AlexShiLucky,项目名称:freertos,代码行数:56,


示例3: IEN

char HalSci0::getchar(){	char buf;	IEN(SCI0,RXI0)=0;	while(!SCI0.SSR.BIT.RDRF){}	buf = SCI0.RDR;	SCI0.SSR.BYTE=(char)(SCI0.SSR.BYTE & 0x80);	stdout->putChar(buf);	IR(SCI0,RXI0)=0;	IEN(SCI0,RXI0)=1;	return buf;}
开发者ID:sa-tsuklog,项目名称:PBGlider,代码行数:11,


示例4: pl_emergencia_init

void pl_emergencia_init(void){    ICU.IRQCR[8].BIT.IRQMD = 2;    IR(ICU, IRQ8)  = 0;            //Clear any previously pending interrupts    IPR(ICU, IRQ8) = 3;            //Set interrupt priority    IEN(ICU, IRQ8) = 0;            // Enable interrupt    IR(ICU, IRQ8)  = 0;            //Clear any previously pending interrupts    IEN(ICU, IRQ8) = 1;            // Enable interrupt    xTaskCreate((pdTASK_CODE)emergencia_task, "Emergencia task", 256, NULL, 3, &xEmergenciaTaskHandle );    R_CMT_CreatePeriodic(10000,timer_motorPower_callback,&timerMotorPower);}
开发者ID:leocafonso,项目名称:MT01_grafico,代码行数:11,


示例5: cmt_init

/******************************************************************************* Function name : cmt_init* Description   : Create one-shot timers based on PCLK / 3* Arguments     : None* Return Value  : None******************************************************************************/void cmt_init(void){    #ifdef PLATFORM_BOARD_RDKRX63N	SYSTEM.PRCR.WORD = 0xA50B; /* Protect off */    #endif        /* Cancel CMT module stop state. */    MSTP(CMT0) = 0;      	MSTP(CMT1) = 0;	    #ifdef PLATFORM_BOARD_RDKRX63N	SYSTEM.PRCR.WORD = 0xA500; /* Protect on  */    #endif      /* Compare Match Timer Control Register (CMCR)     b15:b8  reserved:   Read/Write value always 0    b7      reserved:   Read undef. Write value always 1    b6      CMIE:       Compare Match Interrupt Enable                    b5:b2   reserved:   Read/Write value always 0    b1:b0   CKS:        clock select   3 = count on PCLK / 512      */    CMT0.CMCR.WORD = 0x0003; /* Just set clock divisor for now. */    CMT1.CMCR.WORD = 0x0003;     CMT2.CMCR.WORD = 0x0003;	        /* Compare Match Timer Counter (CMCNT)    b15:b0  16-bit readable/writable up-counter to generate interrupt requests.    */    CMT0.CMCNT = 0x00;      /* Clear the count (default value). */    CMT1.CMCNT = 0x00;          CMT2.CMCNT = 0x00;	        /* Compare Match Timer Constant Register (CMCOR))    b15:b0  16-bit register sets the value for a compare match with CMCNT.    */     CMT0.CMCOR = 0xFFFF;    /* Set to max (default value). */    CMT1.CMCOR = 0xFFFF;    	CMT2.CMCOR = 0xFFFF;    IR (CMT0, CMI0);        /* Interrupt reset.  */     IR (CMT1, CMI1);	IR (CMT2, CMI2);        IPR(CMT0, CMI0) = 4;    /* Interrupt priority set. */    IPR(CMT1, CMI1) = 4;     IPR(CMT2, CMI2) = 4;	           IEN(CMT0, CMI0) = 1;    /* Interrupt enable. */    IEN(CMT1, CMI1) = 1;            IEN(CMT2, CMI2) = 1;	} /* End of function cmt_init() */
开发者ID:47aravind,项目名称:digital_oscilloscope,代码行数:59,


示例6: vInitialiseTimerForIntQueueTest

void vInitialiseTimerForIntQueueTest( void ){	/* Ensure interrupts do not start until full configuration is complete. */	portENTER_CRITICAL();	{		/* Cascade two 8bit timer channels to generate the interrupts. 		8bit timer unit 1 (TMR0 and TMR1) and 8bit timer unit 2 (TMR2 and TMR3 are		utilised for this test. */		/* Enable the timers. */		SYSTEM.MSTPCRA.BIT.MSTPA5 = 0;		SYSTEM.MSTPCRA.BIT.MSTPA4 = 0;		/* Enable compare match A interrupt request. */		TMR0.TCR.BIT.CMIEA = 1;		TMR2.TCR.BIT.CMIEA = 1;		/* Clear the timer on compare match A. */		TMR0.TCR.BIT.CCLR = 1;		TMR2.TCR.BIT.CCLR = 1;		/* Set the compare match value. */		TMR01.TCORA = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / tmrTIMER_0_1_FREQUENCY ) -1 ) / 8 );		TMR23.TCORA = ( unsigned short ) ( ( ( configPERIPHERAL_CLOCK_HZ / tmrTIMER_0_1_FREQUENCY ) -1 ) / 8 );		/* 16 bit operation ( count from timer 1,2 ). */		TMR0.TCCR.BIT.CSS = 3;		TMR2.TCCR.BIT.CSS = 3;			/* Use PCLK as the input. */		TMR1.TCCR.BIT.CSS = 1;		TMR3.TCCR.BIT.CSS = 1;			/* Divide PCLK by 8. */		TMR1.TCCR.BIT.CKS = 2;		TMR3.TCCR.BIT.CKS = 2;			/* Enable TMR 0, 2 interrupts. */		IEN( TMR0, CMIA0 ) = 1;		IEN( TMR2, CMIA2 ) = 1;		/* Set the timer interrupts to be above the kernel.  The interrupts are		assigned different priorities so they nest with each other. */		IPR( TMR0, CMIA0 ) = configMAX_SYSCALL_INTERRUPT_PRIORITY - 1;		IPR( TMR2, CMIA2 ) = ( configMAX_SYSCALL_INTERRUPT_PRIORITY - 2 );	}	portEXIT_CRITICAL();		/* Ensure the interrupts are clear as they are edge detected. */	IR( TMR0, CMIA0 ) = 0;	IR( TMR2, CMIA2 ) = 0;}
开发者ID:AlexShiLucky,项目名称:freertos,代码行数:52,


示例7: BSP_Ser_WrByteUnlocked

void  BSP_Ser_WrByteUnlocked (CPU_INT08U c){                                                                /* Enable the Transmission Complete interrupt.          */    IEN(SCI2, TEI2)  = 1;    SCI2.SCR.BIT.TIE = 1;                                       /* Enable Transmit Interrupts                           */    SCI2.TDR         = c;                                       /* Place character to be transmitted into register      */    BSP_OS_SemWait(&BSP_SerTxWait, 0);    IEN(SCI2, TEI2)  = 0;    SCI2.SCR.BIT.TIE = 0;                                       /* Disable Transmit Interrupts                          */}
开发者ID:wagnerN02645786,项目名称:Real_Time_Operating_Systems,代码行数:13,


示例8: DD_PixelsLineISR

//#pragma interrupt (DD_PixelsLineISR(vect=VECT_MTU0_TGIB0, enable))void DD_PixelsLineISR(void){    // We have just got an interrupt to start sending out data.    // Depending on which line we are processing changes what we do.    if (DD_CurrentLine < (V_LINES_PULSE + V_LINES_BACK_PORCH + DD_FRAME_HEIGHT)) {        // We are a standard line of data about to go out.        // Determine the address of the line of pixels to send.        // And send a single line of pixels.        EXDMAC0.EDMSAR = (TUInt32)(DD_ActiveRegionLines.pLine);        EXDMAC0.EDMCRB = 1;        EXDMAC0.EDMCRA = /*(DD_FRAME_WIDTH << 16) + */DD_FRAME_WIDTH;        EXDMAC0.EDMCNT.BIT.DTE = 1;        // Setup for the next line to go out by moving to the next address        DD_ActiveRegionLines.pLine += DD_ActiveRegionLines.LineNext;        // Have we reached the last line of the frame data?        if (DD_CurrentLine >= (V_LINES_PULSE + V_LINES_BACK_PORCH                + DD_FRAME_HEIGHT - 1)) {            // Yes, end of frame.  Turn back on the blank period interrupt            // calls to DD_BlankLineISR() after making sure its interrupt flag            // is cleared.  We'll still get one more interrupt in this            // routine (see below)            ICU.IR[IR_MTU0_TGIA0].BIT.IR = 0;            //ICU.IER[IER_MTU0_TGIA0].BIT.IEN0 = 1;			IEN(MTU0, TGIA0) = 1;        }    } else {        // We have just reached the end of the frame.        // Now keep the Data Enable line initially high and transiting to        // high on matches.        MTU4.TIORL.BIT.IOC = 0x6;        // We are no longer using the bus to get data        DD_IsBusActive = 0;        // Turn off this interrupt (DD_PixelsLineISR) now.        //ICU.IER[IER_MTU0_TGIB0].BIT.IEN1 = 0;		IEN(MTU0, TGIB0) = 0;        // Let the frame interrupt occur        //ICU.IER[IER_MTU3_TGIC3].BIT.IEN3 = 1;		IEN(MTU3, TGIC3) = 1;    }    // Next line please    DD_CurrentLine++;}
开发者ID:EnricoGiordano1992,项目名称:Tesi,代码行数:50,


示例9: rtc_init

void rtc_init(void){	/* For detailed description please refer to hardware manual */	SYSTEM.SUBOSCCR.BIT.SUBSTOP = 0;                         /* Enable SubClock circuit */	RTC.RCR2.BIT.START      = 0;	while (0 != RTC.RCR2.BIT.START);	RTC.RCR2.BIT.RESET      = 1;	while (1 == RTC.RCR2.BIT.RESET);	/* Set initial time and date */	RTC.RSECCNT.BYTE        = 0;	RTC.RMINCNT.BYTE        = 0;	RTC.RHRCNT.BYTE         = 0;	RTC.RDAYCNT.BYTE        = 0;	RTC.RWKCNT.BYTE         = 0;	RTC.RMONCNT.BYTE        = 0;	RTC.RYRCNT.WORD         = 0x2000;	/* Set periodic interrupt */	RTC.RCR1.BYTE           = 0;	RTC.RCR1.BIT.PES        = 1;                             /* Set periodic interrupts frequency to 256 Hz */	RTC.RCR1.BIT.PIE        = 1;                             /* Enable periodic interrupts */	_isr_vectors[VECT(RTC,PRD)] = rtc_irq_handler;	IR(RTC,PRD)             = 0;                             /* Clear interrupt flag */	IPR(RTC,PRD)            = 15;                            /* Set priority level */	IEN(RTC,PRD)            = 1;                             /* Enable interrupt in ICU */	RTC.RCR2.BIT.START      = 1;                             /* Start RTC */	while (1 != RTC.RCR2.BIT.START);}
开发者ID:msalau,项目名称:TNKernel-RX,代码行数:28,


示例10: sound_start

int sound_start (	WAVFIFO* fcb,	/* Pointer to the sound FIFO control structure */	uint32_t fs		/* Sampling frequency [Hz] */){	if (fs < 8000 || fs > 48000) return 0;	/* Check fs range */	WavFifo = fcb;			/* Register FIFO control structure */	fcb->ri = 0; fcb->wi = 0; fcb->ct = 0;	/* Flush FIFO */	/* Configure DAC0/DAC1 as audio output */	MSTP_DA = 0;				/* Enable DAC0/1 power */	DA.DADPR.BIT.DPSEL = 1;		/* DADR0/1 register left-justfied */	DA.DACR.BYTE = 0xE0;		/* Enable DAC0/1 */	/* Configure CMT3 as sampling interval timer */	MSTP_CMT2 = 0;									/* Enable CMT2/3 power */	CMT3.CMCOR = (uint16_t)(F_PCLK / 8 / fs - 1);	/* Audio sampling interval */	CMT3.CMCNT = 0;	IPR(CMT3, CMI3) = 9;	/* Interrupt priority = 9 */	IEN(CMT3, CMI3) = 1;	/* Enable CMT3 compare match irq */	CMT3.CMCR.BIT.CMIE = 1;	CMT.CMSTR1.BIT.STR3 = 1;	/* Start CMT3 */	return 1;}
开发者ID:12019,项目名称:libraries,代码行数:26,


示例11: attachIntervalTimerHandler

/**************************************************************************** * Attach interval timer function * * The callback function is called every 1ms interval * @param[in] fFunction Specify callback function * * @return none * ***************************************************************************/void attachIntervalTimerHandler(void (*fFunction)(unsigned long u32Milles)){    g_fITInterruptFunc = fFunction;    startModule(MstpIdTPU0);    // Stop the timer.    TPUA.TSTR.BIT.CST5 = 0U;    // Set the counter to run at the desired frequency.    TPU5.TCR.BIT.TPSC = 0b011;    // Set TGRA compare match to clear TCNT.    TPU5.TCR.BIT.CCLR = 0b001;    // Set the count to occur on rising edge of PCLK.    TPU5.TCR.BIT.CKEG = 0b01;    // Set Normal.    TPU5.TMDR.BIT.MD = 0b0000;    // Set the period.    TPU5.TGRA = 750 - 1; //1ms setting at PCLK/64(750kHz)    // Set the count to occur on rising edge of PCLK.    TPU5.TSR.BIT.TGFA = 0U;    /* Set TGI6A interrupt priority level to 5*/    IPR(TPU5,TGI5A) = 0x5;    /* Enable TGI6A interrupts */    IEN(TPU5,TGI5A) = 0x1;    /* Clear TGI6A interrupt flag */    IR(TPU5,TGI5A) = 0x0;    // Enable the module interrupt for the ms timer.    TPU5.TIER.BIT.TGIEA = 1U;    // Start the timer.    TPUA.TSTR.BIT.CST5 = 1U;}
开发者ID:hamling-ling,项目名称:IoPocketMiku,代码行数:43,


示例12: rx63nEthEnableIrq

void rx63nEthEnableIrq(NetInterface *interface){   //Enable Ethernet MAC interrupts   IEN(ETHER, EINT) = 1;   //Enable Ethernet PHY interrupts   interface->phyDriver->enableIrq(interface);}
开发者ID:timurey,项目名称:oryx_stm32f205,代码行数:7,


示例13: rx63nEthDisableIrq

void rx63nEthDisableIrq(NetInterface *interface){   //Disable Ethernet MAC interrupts   IEN(ETHER, EINT) = 0;   //Disable Ethernet PHY interrupts   interface->phyDriver->disableIrq(interface);}
开发者ID:timurey,项目名称:oryx_stm32f205,代码行数:7,


示例14: R_CMT0_Stop

/************************************************************************************************************************ Function Name: R_CMT0_Stop* Description  : This function stops the CMT0 channel counter.* Arguments    : None* Return Value : None***********************************************************************************************************************/void R_CMT0_Stop(void){    /* Disable CMI0 interrupt in ICU */    IEN(CMT0,CMI0) = 0U;    /* Stop CMT0 count */    CMT.CMSTR0.BIT.STR0 = 0U;}
开发者ID:vmandrews,项目名称:CSDC-OBC-Software,代码行数:14,


示例15: R_CMT0_Start

/************************************************************************************************************************ Function Name: R_CMT0_Start* Description  : This function starts the CMT0 channel counter.* Arguments    : None* Return Value : None***********************************************************************************************************************/void R_CMT0_Start(void){    /* Enable CMI0 interrupt in ICU */    IEN(CMT0,CMI0) = 1U;    /* Start CMT0 count */    CMT.CMSTR0.BIT.STR0 = 1U;}
开发者ID:vmandrews,项目名称:CSDC-OBC-Software,代码行数:14,


示例16: BSP_Ser_RdByteUnlocked

CPU_INT08U  BSP_Ser_RdByteUnlocked (void){    CPU_INT08U   rx_byte;    IEN(SCI2, RXI2)  = 1;                                       /* Enable the Receive Data Register Full interrupt.     */    SCI2.SCR.BIT.RIE = 1;                                       /* Enable Receive Interrupts                            */    BSP_OS_SemWait(&BSP_SerRxWait, 0);                          /* Wait until a data is received                        */    IEN(SCI2, RXI2)  = 0;                                       /* Disable the Receive Data Register Full interrupt.    */    SCI2.SCR.BIT.RIE = 0;                                       /* Disable Receive Interrupts                           */    rx_byte = BSP_SerRxData;                                    /* Read the data form the temporal register.            */    return (rx_byte);}
开发者ID:wagnerN02645786,项目名称:Real_Time_Operating_Systems,代码行数:17,


示例17: cet_init

void cet_init(void){//	CMT.CMSTR1.BIT.STR2 = 1;				//カウント
C++ IF函数代码示例
C++ IEEE80211_SKB_CB函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。