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

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

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

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

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

示例1: HeartbeatCounter_ReadPeriod

/******************************************************************************** Function Name: HeartbeatCounter_ReadPeriod********************************************************************************* Summary:* Reads the current period value without affecting counter operation.** Parameters:  *  void:  ** Return: *  (uint32) Present period value.********************************************************************************/uint32 HeartbeatCounter_ReadPeriod(void) {    #if(HeartbeatCounter_UsingFixedFunction)        return ((uint32)CY_GET_REG16(HeartbeatCounter_PERIOD_LSB_PTR));    #else        return (CY_GET_REG32(HeartbeatCounter_PERIOD_LSB_PTR));    #endif /* (HeartbeatCounter_UsingFixedFunction) */}
开发者ID:ponioj,项目名称:embedded,代码行数:21,


示例2: hallTickTimer_ReadPeriod

/******************************************************************************** Function Name: hallTickTimer_ReadPeriod********************************************************************************** Summary:*  This function returns the current value of the Period.** Parameters:*  void** Return:*  The present value of the counter.********************************************************************************/uint32 hallTickTimer_ReadPeriod(void) {   #if(hallTickTimer_UsingFixedFunction)       return ((uint32)CY_GET_REG16(hallTickTimer_PERIOD_LSB_PTR));   #else       return (CY_GET_REG32(hallTickTimer_PERIOD_LSB_PTR));   #endif /* (hallTickTimer_UsingFixedFunction) */}
开发者ID:cvb0rg,项目名称:PSoC3_TutorialSeries_PIDcontrol,代码行数:22,


示例3: Timer_Look_ahead_mode_ReadCapture

/******************************************************************************** Function Name: Timer_Look_ahead_mode_ReadCapture********************************************************************************** Summary:*  This function returns the last value captured.** Parameters:*  void** Return:*  Present Capture value.********************************************************************************/uint32 Timer_Look_ahead_mode_ReadCapture(void) {   #if(Timer_Look_ahead_mode_UsingFixedFunction)       return ((uint32)CY_GET_REG16(Timer_Look_ahead_mode_CAPTURE_LSB_PTR));   #else       return (CY_GET_REG24(Timer_Look_ahead_mode_CAPTURE_LSB_PTR));   #endif /* (Timer_Look_ahead_mode_UsingFixedFunction) */}
开发者ID:jramshur,项目名称:SRD_Firmware,代码行数:22,


示例4: HeartbeatCounter_ReadCapture

/******************************************************************************** Function Name: HeartbeatCounter_ReadCapture********************************************************************************* Summary:*   This function returns the last value captured.** Parameters:  *  void** Return: *  (uint32) Present Capture value.********************************************************************************/uint32 HeartbeatCounter_ReadCapture(void) {    #if(HeartbeatCounter_UsingFixedFunction)        return ((uint32)CY_GET_REG16(HeartbeatCounter_STATICCOUNT_LSB_PTR));    #else        return (CY_GET_REG32(HeartbeatCounter_STATICCOUNT_LSB_PTR));    #endif /* (HeartbeatCounter_UsingFixedFunction) */}
开发者ID:ponioj,项目名称:embedded,代码行数:21,


示例5: ChargeDelay_ReadPeriod

/******************************************************************************** Function Name: ChargeDelay_ReadPeriod********************************************************************************** Summary:*  Reads the period value used by the PWM hardware.** Parameters:*  None** Return:*  uint8/16: Period value********************************************************************************/uint8 ChargeDelay_ReadPeriod(void) {    #if(ChargeDelay_UsingFixedFunction)        return ((uint8)CY_GET_REG16(ChargeDelay_PERIOD_LSB_PTR));    #else        return (CY_GET_REG8(ChargeDelay_PERIOD_LSB_PTR));    #endif /* (ChargeDelay_UsingFixedFunction) */}
开发者ID:dmaone,项目名称:CommonSense,代码行数:22,


示例6: Timer_Look_ahead_mode_ReadPeriod

/******************************************************************************** Function Name: Timer_Look_ahead_mode_ReadPeriod********************************************************************************** Summary:*  This function returns the current value of the Period.** Parameters:*  void** Return:*  The present value of the counter.********************************************************************************/uint32 Timer_Look_ahead_mode_ReadPeriod(void) {   #if(Timer_Look_ahead_mode_UsingFixedFunction)       return ((uint32)CY_GET_REG16(Timer_Look_ahead_mode_PERIOD_LSB_PTR));   #else       return (CY_GET_REG24(Timer_Look_ahead_mode_PERIOD_LSB_PTR));   #endif /* (Timer_Look_ahead_mode_UsingFixedFunction) */}
开发者ID:jramshur,项目名称:SRD_Firmware,代码行数:22,


示例7: QuadDecoder_Cnt8_ReadPeriod

/******************************************************************************** Function Name: QuadDecoder_Cnt8_ReadPeriod********************************************************************************* Summary:* Reads the current period value without affecting counter operation.** Parameters:  *  void:  ** Return: *  (uint8) Present period value.********************************************************************************/uint8 QuadDecoder_Cnt8_ReadPeriod(void) {    #if(QuadDecoder_Cnt8_UsingFixedFunction)        return ((uint8)CY_GET_REG16(QuadDecoder_Cnt8_PERIOD_LSB_PTR));    #else        return (CY_GET_REG8(QuadDecoder_Cnt8_PERIOD_LSB_PTR));    #endif /* (QuadDecoder_Cnt8_UsingFixedFunction) */}
开发者ID:Qmax,项目名称:PT6,代码行数:21,


示例8: ChargeDelay_ReadCompare

 /******************************************************************************* * Function Name: ChargeDelay_ReadCompare ******************************************************************************** * * Summary: *  Reads the compare value for the compare output when the PWM Mode parameter is *  set to Dither mode, Center Aligned mode, or One Output mode. * * Parameters: *  None * * Return: *  uint8/uint16: Current compare value * *******************************************************************************/ uint8 ChargeDelay_ReadCompare(void)  {     #if(ChargeDelay_UsingFixedFunction)         return ((uint8)CY_GET_REG16(ChargeDelay_COMPARE1_LSB_PTR));     #else         return (CY_GET_REG8(ChargeDelay_COMPARE1_LSB_PTR));     #endif /* (ChargeDelay_UsingFixedFunction) */ }
开发者ID:dmaone,项目名称:CommonSense,代码行数:23,


示例9: TimerC_ReadCapture

/******************************************************************************** Function Name: TimerC_ReadCapture********************************************************************************** Summary:*  This function returns the last value captured.** Parameters:*  void** Return:*  Present Capture value.********************************************************************************/uint8 TimerC_ReadCapture(void) {   #if(TimerC_UsingFixedFunction)       return ((uint8)CY_GET_REG16(TimerC_CAPTURE_LSB_PTR));   #else       return (CY_GET_REG8(TimerC_CAPTURE_LSB_PTR));   #endif /* (TimerC_UsingFixedFunction) */}
开发者ID:greglandry,项目名称:PSoC,代码行数:22,


示例10: QuadDecoder_Cnt8_ReadCapture

/******************************************************************************** Function Name: QuadDecoder_Cnt8_ReadCapture********************************************************************************* Summary:*   This function returns the last value captured.** Parameters:  *  void** Return: *  (uint8) Present Capture value.********************************************************************************/uint8 QuadDecoder_Cnt8_ReadCapture(void) {    #if(QuadDecoder_Cnt8_UsingFixedFunction)        return ((uint8)CY_GET_REG16(QuadDecoder_Cnt8_STATICCOUNT_LSB_PTR));    #else        return (CY_GET_REG8(QuadDecoder_Cnt8_STATICCOUNT_LSB_PTR));    #endif /* (QuadDecoder_Cnt8_UsingFixedFunction) */}
开发者ID:Qmax,项目名称:PT6,代码行数:21,


示例11: OSC1_Freq_Timer_3_ReadCapture

/******************************************************************************** Function Name: OSC1_Freq_Timer_3_ReadCapture********************************************************************************** Summary:*  This function returns the last value captured.** Parameters:*  void** Return:*  Present Capture value.********************************************************************************/uint32 OSC1_Freq_Timer_3_ReadCapture(void) {   #if(OSC1_Freq_Timer_3_UsingFixedFunction)       return ((uint32)CY_GET_REG16(OSC1_Freq_Timer_3_CAPTURE_LSB_PTR));   #else       return (CY_GET_REG24(OSC1_Freq_Timer_3_CAPTURE_LSB_PTR));   #endif /* (OSC1_Freq_Timer_3_UsingFixedFunction) */}
开发者ID:gillspice,项目名称:Dual-PSoC-DCO,代码行数:22,


示例12: OSC1_Freq_Timer_3_ReadPeriod

/******************************************************************************** Function Name: OSC1_Freq_Timer_3_ReadPeriod********************************************************************************** Summary:*  This function returns the current value of the Period.** Parameters:*  void** Return:*  The present value of the counter.********************************************************************************/uint32 OSC1_Freq_Timer_3_ReadPeriod(void) {   #if(OSC1_Freq_Timer_3_UsingFixedFunction)       return ((uint32)CY_GET_REG16(OSC1_Freq_Timer_3_PERIOD_LSB_PTR));   #else       return (CY_GET_REG24(OSC1_Freq_Timer_3_PERIOD_LSB_PTR));   #endif /* (OSC1_Freq_Timer_3_UsingFixedFunction) */}
开发者ID:gillspice,项目名称:Dual-PSoC-DCO,代码行数:22,


示例13: MotorPWM_ReadPeriod

/******************************************************************************** Function Name: MotorPWM_ReadPeriod********************************************************************************** Summary:*  Reads the period value used by the PWM hardware.** Parameters:*  None** Return:*  uint8/16: Period value********************************************************************************/uint8 MotorPWM_ReadPeriod(void) {    #if(MotorPWM_UsingFixedFunction)        return ((uint8)CY_GET_REG16(MotorPWM_PERIOD_LSB_PTR));    #else        return (CY_GET_REG8(MotorPWM_PERIOD_LSB_PTR));    #endif /* (MotorPWM_UsingFixedFunction) */}
开发者ID:eamsuwan93,项目名称:PSoC-4-Compass-Sensor,代码行数:22,


示例14: MotorPWM_ReadCompare

 /******************************************************************************* * Function Name: MotorPWM_ReadCompare ******************************************************************************** * * Summary: *  Reads the compare value for the compare output when the PWM Mode parameter is *  set to Dither mode, Center Aligned mode, or One Output mode. * * Parameters: *  None * * Return: *  uint8/uint16: Current compare value * *******************************************************************************/ uint8 MotorPWM_ReadCompare(void)  {     #if(MotorPWM_UsingFixedFunction)         return ((uint8)CY_GET_REG16(MotorPWM_COMPARE1_LSB_PTR));     #else         return (CY_GET_REG8(MotorPWM_COMPARE1_LSB_PTR));     #endif /* (MotorPWM_UsingFixedFunction) */ }
开发者ID:eamsuwan93,项目名称:PSoC-4-Compass-Sensor,代码行数:23,


示例15: hallTickTimer_ReadCapture

/******************************************************************************** Function Name: hallTickTimer_ReadCapture********************************************************************************** Summary:*  This function returns the last value captured.** Parameters:*  void** Return:*  Present Capture value.********************************************************************************/uint32 hallTickTimer_ReadCapture(void) {   #if(hallTickTimer_UsingFixedFunction)       return ((uint32)CY_GET_REG16(hallTickTimer_CAPTURE_LSB_PTR));   #else       return (CY_GET_REG32(hallTickTimer_CAPTURE_LSB_PTR));   #endif /* (hallTickTimer_UsingFixedFunction) */}
开发者ID:cvb0rg,项目名称:PSoC3_TutorialSeries_PIDcontrol,代码行数:22,


示例16: LED_SEG_PWM_ReadPeriod

/******************************************************************************** Function Name: LED_SEG_PWM_ReadPeriod********************************************************************************** Summary:*  Reads the period value used by the PWM hardware.** Parameters:*  None** Return:*  uint8/16: Period value********************************************************************************/uint8 LED_SEG_PWM_ReadPeriod(void){#if(LED_SEG_PWM_UsingFixedFunction)    return ((uint8)CY_GET_REG16(LED_SEG_PWM_PERIOD_LSB_PTR));#else    return (CY_GET_REG8(LED_SEG_PWM_PERIOD_LSB_PTR));#endif /* (LED_SEG_PWM_UsingFixedFunction) */}
开发者ID:remixvit,项目名称:Thermometr,代码行数:22,


示例17: PWM_BC_ReadPeriod

/******************************************************************************** Function Name: PWM_BC_ReadPeriod********************************************************************************* * Summary:*  Reads the period value used by the PWM hardware.** Parameters:  *  None** Return: *  uint8/16: Period value********************************************************************************/ uint8 PWM_BC_ReadPeriod(void) {	#if(PWM_BC_UsingFixedFunction)        return ((uint8)CY_GET_REG16(PWM_BC_PERIOD_LSB_PTR));    #else        return (CY_GET_REG8(PWM_BC_PERIOD_LSB_PTR));    #endif /* (PWM_BC_UsingFixedFunction) */}
开发者ID:thurstonzhu,项目名称:ELE302-Carlab,代码行数:22,


示例18: Left_Phase_Counter_ReadCapture

/******************************************************************************** Function Name: Left_Phase_Counter_ReadCapture********************************************************************************* Summary:*   This function returns the last value captured.** Parameters:  *  void** Return: *  (uint32) Present Capture value.********************************************************************************/uint32 Left_Phase_Counter_ReadCapture(void) {    #if(Left_Phase_Counter_UsingFixedFunction)        return ((uint32)CY_GET_REG16(Left_Phase_Counter_STATICCOUNT_LSB_PTR));    #else        return (CY_GET_REG32(Left_Phase_Counter_STATICCOUNT_LSB_PTR));    #endif /* (Left_Phase_Counter_UsingFixedFunction) */}
开发者ID:tslator,项目名称:SingleBoard-Psoc046,代码行数:21,


示例19: Counter_1_ReadPeriod

/******************************************************************************** Function Name: Counter_1_ReadPeriod********************************************************************************* Summary:* Reads the current period value without affecting counter operation.** Parameters:*  void:** Return:*  (uint8) Present period value.********************************************************************************/uint8 Counter_1_ReadPeriod(void){#if(Counter_1_UsingFixedFunction)    return ((uint8)CY_GET_REG16(Counter_1_PERIOD_LSB_PTR));#else    return (CY_GET_REG8(Counter_1_PERIOD_LSB_PTR));#endif /* (Counter_1_UsingFixedFunction) */}
开发者ID:addisonElliott,项目名称:ECE381,代码行数:21,


示例20: PWM_BC_ReadCompare

    /*******************************************************************************    * Function Name: PWM_BC_ReadCompare    ********************************************************************************    *     * Summary:    *  Reads the compare value for the compare output when the PWM Mode parameter is     *  set to Dither mode, Center Aligned mode, or One Output mode.    *    * Parameters:      *  None    *    * Return:     *  uint8/uint16: Current compare value    *    *******************************************************************************/      uint8 PWM_BC_ReadCompare(void)      {		#if(PWM_BC_UsingFixedFunction)            return ((uint8)CY_GET_REG16(PWM_BC_COMPARE1_LSB_PTR));        #else            return (CY_GET_REG8(PWM_BC_COMPARE1_LSB_PTR));        #endif /* (PWM_BC_UsingFixedFunction) */    }
开发者ID:thurstonzhu,项目名称:ELE302-Carlab,代码行数:23,


示例21: Counter_1_ReadCapture

/******************************************************************************** Function Name: Counter_1_ReadCapture********************************************************************************* Summary:*   This function returns the last value captured.** Parameters:*  void** Return:*  (uint8) Present Capture value.********************************************************************************/uint8 Counter_1_ReadCapture(void){#if(Counter_1_UsingFixedFunction)    return ((uint8)CY_GET_REG16(Counter_1_STATICCOUNT_LSB_PTR));#else    return (CY_GET_REG8(Counter_1_STATICCOUNT_LSB_PTR));#endif /* (Counter_1_UsingFixedFunction) */}
开发者ID:addisonElliott,项目名称:ECE381,代码行数:21,


示例22: ADC_GetResult16

/******************************************************************************** Function Name: ADC_GetResult16********************************************************************************** Summary:*  Returns a 16-bit result for a conversion with a result that has a resolution*  of 8 to 12 bits.*  ADC_IsEndConversion() should be called to verify that the data*   sample is ready** Parameters:*  None.** Return:*  The 16-bit result of the last ADC conversion** Global Variables:*  ADC_shift - used to convert the ADC counts to the 2s*  compliment form.** Side Effects:*  Converts the ADC counts to the 2s complement form.********************************************************************************/int16 ADC_GetResult16( void ){    uint16 res;    res = CY_GET_REG16(ADC_SAR_WRK_PTR);    return( (int16)res - ADC_shift );}
开发者ID:GSejas,项目名称:Control,代码行数:32,


示例23: hallTickCounter_ReadPeriod

/******************************************************************************** Function Name: hallTickCounter_ReadPeriod********************************************************************************* Summary:* Reads the current period value without affecting counter operation.** Parameters:  *  void:  ** Return: *  (uint8) Present period value.********************************************************************************/uint8 hallTickCounter_ReadPeriod(void) {    #if(hallTickCounter_UsingFixedFunction)        return ((uint8)CY_GET_REG16(hallTickCounter_PERIOD_LSB_PTR));    #else        return (CY_GET_REG8(hallTickCounter_PERIOD_LSB_PTR));    #endif /* (hallTickCounter_UsingFixedFunction) */}
开发者ID:cvb0rg,项目名称:PSoC3_TutorialSeries_PIDcontrol,代码行数:21,


示例24: hallTickCounter_ReadCapture

/******************************************************************************** Function Name: hallTickCounter_ReadCapture********************************************************************************* Summary:*   This function returns the last value captured.** Parameters:  *  void** Return: *  (uint8) Present Capture value.********************************************************************************/uint8 hallTickCounter_ReadCapture(void) {    #if(hallTickCounter_UsingFixedFunction)        return ((uint8)CY_GET_REG16(hallTickCounter_STATICCOUNT_LSB_PTR));    #else        return (CY_GET_REG8(hallTickCounter_STATICCOUNT_LSB_PTR));    #endif /* (hallTickCounter_UsingFixedFunction) */}
开发者ID:cvb0rg,项目名称:PSoC3_TutorialSeries_PIDcontrol,代码行数:21,


示例25: Wave_Timer_ReadCounter

/******************************************************************************** Function Name: Wave_Timer_ReadCounter********************************************************************************** Summary:*  This function returns the current counter value.** Parameters:*  void** Return:*  Present compare value.********************************************************************************/uint16 Wave_Timer_ReadCounter(void) {    /* Force capture by reading Accumulator */    /* Must first do a software capture to be able to read the counter */    /* It is up to the user code to make sure there isn't already captured data in the FIFO */    #if(Wave_Timer_UsingFixedFunction)        (void)CY_GET_REG16(Wave_Timer_COUNTER_LSB_PTR);    #else        (void)CY_GET_REG8(Wave_Timer_COUNTER_LSB_PTR_8BIT);    #endif/* (Wave_Timer_UsingFixedFunction) */    /* Read the data from the FIFO (or capture register for Fixed Function)*/    #if(Wave_Timer_UsingFixedFunction)        return ((uint16)CY_GET_REG16(Wave_Timer_CAPTURE_LSB_PTR));    #else        return (CY_GET_REG16(Wave_Timer_CAPTURE_LSB_PTR));    #endif /* (Wave_Timer_UsingFixedFunction) */}
开发者ID:bill-he,项目名称:jackbill350,代码行数:32,


示例26: Wave_Timer_SoftwareCapture

/******************************************************************************** Function Name: Wave_Timer_SoftwareCapture********************************************************************************** Summary:*  This function forces a capture independent of the capture signal.** Parameters:*  void** Return:*  void** Side Effects:*  An existing hardware capture could be overwritten.********************************************************************************/void Wave_Timer_SoftwareCapture(void) {    /* Generate a software capture by reading the counter register */    #if(Wave_Timer_UsingFixedFunction)        (void)CY_GET_REG16(Wave_Timer_COUNTER_LSB_PTR);    #else        (void)CY_GET_REG8(Wave_Timer_COUNTER_LSB_PTR_8BIT);    #endif/* (Wave_Timer_UsingFixedFunction) */    /* Capture Data is now in the FIFO */}
开发者ID:bill-he,项目名称:jackbill350,代码行数:27,


示例27: Counter_ReadCounter

/******************************************************************************** Function Name: Counter_ReadCounter********************************************************************************* Summary:* Returns the current value of the counter.  It doesn't matter* if the counter is enabled or running.** Parameters:*  void:** Return:*  (uint16) The present value of the counter.** Reentrant*  Yes********************************************************************************/uint16 Counter_ReadCounter(void){    /* Force capture by reading Accumulator */    /* Must first do a software capture to be able to read the counter */    /* It is up to the user code to make sure there isn't already captured data in the FIFO */    CY_GET_REG8(Counter_COUNTER_LSB_PTR);    /* Read the data from the FIFO (or capture register for Fixed Function)*/    return (CY_GET_REG16(Counter_STATICCOUNT_LSB_PTR));}
开发者ID:kmmankad,项目名称:HH10D-PSoC3,代码行数:27,


示例28: PWM_LED_B_ReadCounter

 /******************************************************************************* * Function Name: PWM_LED_B_ReadCounter ******************************************************************************** *  * Summary: *  This function returns the current value of the counter.  It doesn't matter *  if the counter is enabled or running. * * Parameters:   *  None   * * Return:  *  The current value of the counter. * *******************************************************************************/ uint16 PWM_LED_B_ReadCounter(void)  {     /* Force capture by reading Accumulator */     /* Must first do a software capture to be able to read the counter */     /* It is up to the user code to make sure there isn't already captured data in the FIFO */     (void)PWM_LED_B_COUNTERCAP_LSB;          /* Read the data from the FIFO (or capture register for Fixed Function)*/     return (CY_GET_REG16(PWM_LED_B_CAPTURE_LSB_PTR)); }
开发者ID:antoniorohit,项目名称:PSoC_Projects,代码行数:25,


示例29: PWM_ReadCounter

/******************************************************************************** Function Name: PWM_ReadCounter********************************************************************************** Summary:*  This function returns the current value of the counter.  It doesn't matter*  if the counter is enabled or running.** Parameters:*  None** Return:*  The current value of the counter.********************************************************************************/uint16 PWM_ReadCounter(void){    /* Force capture by reading Accumulator */    /* Must first do a software capture to be able to read the counter */    /* It is up to the user code to make sure there isn't already captured data in the FIFO */    (void)CY_GET_REG8(PWM_COUNTERCAP_LSB_PTR_8BIT);    /* Read the data from the FIFO */    return (CY_GET_REG16(PWM_CAPTURE_LSB_PTR));}
开发者ID:bill-he,项目名称:jackbill350,代码行数:25,


示例30: LED_SaveConfig

/******************************************************************************** Function Name: LED_SaveConfig********************************************************************************** Summary:*  Saves the current user configuration.*  * Parameters:  *  None.** Return: *  None.** Global Variables:*  LED_backup - modified when non-retention registers are saved.** Reentrant:*  No.********************************************************************************/void LED_SaveConfig(void) {    #if (CY_UDB_V0)        #if(!LED_PULSE_TYPE_HARDCODED)            LED_backup.cr = LED_CONTROL_REG;        #endif /* End LED_PULSE_TYPE_HARDCODED */        LED_backup.seed = LED_ReadSeed();        LED_backup.seed_copy = CY_GET_REG16(LED_SEED_COPY_PTR);        LED_backup.polynom = LED_ReadPolynomial();        LED_backup.density0 = LED_ReadPulse0();        LED_backup.density1 = LED_ReadPulse1();    #else /* CY_UDB_V1 */        #if(!LED_PULSE_TYPE_HARDCODED)            LED_backup.cr = LED_CONTROL_REG;        #endif /* End LED_PULSE_TYPE_HARDCODED */        LED_backup.seed = LED_ReadSeed();        LED_backup.seed_copy = CY_GET_REG16(LED_SEED_COPY_PTR);        LED_backup.polynom = LED_ReadPolynomial();    #endif  /* CY_UDB_V0 */}
开发者ID:e2forlife,项目名称:PSoC-W5100-Driver,代码行数:40,



注:本文中的CY_GET_REG16函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ CY_GET_REG32函数代码示例
C++ CYG_TEST_NA函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。