1.3.23.52 1.4.24.52 1.5.22.52 1.6.24.52 1.7.25.52 1.29.26.52 1.30.16.52 1.31.16.52 1.32.29.52 1.33.18.52 1.37.16.52 1.38.24.52 1.39.21.52 1.40.23.52 TCx_Capture32bitChannel0Get Function
C
/* x = TC instance number */
uint32_t TCx_Capture32bitChannel0Get( void );
Summary
Reads capture value from channel 0.
Description
This function reads the captured value stored in CC[0]. 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 0
Example
uint32_t captureValue = 0;
TC0_CaptureInitialize();
TC0_CaptureStart();
captureValue = TC0_Capture32bitChannel0Get();
Remarks
None.