1.4.24.51 TCx_Capture16bitChannel1Get Function
C
/* x = TC instance number */
uint16_t TCx_Capture16bitChannel1Get( void );
Summary
Reads capture value from channel 1.
Description
This function reads the captured value stored in CC[1]. Value can be read from interrupt routine or by polling.
Precondition
TCx_CaptureInitialize() function must have been called first.
Parameters
None.
Returns
Captured value from channel 1
Example
uint16_t captureValue = 0;
TC0_CaptureInitialize();
TC0_CaptureStart();
captureValue = TC0_Capture16bitChannel1Get();
Remarks
None.