當前位置: 首頁>>代碼示例>>C++>>正文


C++ CY_GET_REG16函數代碼示例

本文整理匯總了C++中CY_GET_REG16函數的典型用法代碼示例。如果您正苦於以下問題:C++ CY_GET_REG16函數的具體用法?C++ CY_GET_REG16怎麽用?C++ CY_GET_REG16使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CY_GET_REG16函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的CY_GET_REG16函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。