本文整理汇总了C++中CY_GET_REG16函数的典型用法代码示例。如果您正苦于以下问题:C++ CY_GET_REG16函数的具体用法?C++ CY_GET_REG16怎么用?C++ CY_GET_REG16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CY_GET_REG16函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,代码来源:HeartbeatCounter.c
示例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,代码来源:hallTickTimer.c
示例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,代码来源:Timer_Look_ahead_mode.c
示例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,代码来源:HeartbeatCounter.c
示例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,代码来源:ChargeDelay.c
示例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,代码来源:Timer_Look_ahead_mode.c
示例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,代码来源:QuadDecoder_Cnt8.c
示例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,代码来源:ChargeDelay.c
示例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,代码来源:TimerC.c
示例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,代码来源:QuadDecoder_Cnt8.c
示例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,代码来源:OSC1_Freq_Timer_3.c
示例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,代码来源:OSC1_Freq_Timer_3.c
示例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,代码来源:MotorPWM.c
示例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,代码来源:MotorPWM.c
示例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,代码来源:hallTickTimer.c
示例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,代码来源:LED_SEG_PWM.c
示例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,代码来源:PWM_BC.c
示例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,代码来源:Left_Phase_Counter.c
示例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,代码来源:Counter_1.c
示例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,代码来源:PWM_BC.c
注:本文中的CY_GET_REG16函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论