1.2.24.49 1.3.24.49 1.4.25.49 1.5.23.49 1.6.25.49 1.7.26.49 1.29.27.49 1.30.17.49 1.31.17.49 1.33.19.49 1.37.17.49 1.40.24.49 TCCx_Capture32bitValueGet Function
C
/* x = TCC instance number */
uint32_t TCCx_Capture32bitValueGet( TCCx_CHANNEL_NUM channel );
Summary
Reads capture value from given channel
Description
This function reads the captured value stored in CC[x]. Value can be read from interrupt routine or by polling.
Precondition
TCCx_CaptureInitialize() function must have been called first.
Parameters
Param | Description |
---|---|
channel | capture channel number |
Returns
Captured value from given channel
Example
uint32_t captureValue = 0;
TCC0_CaptureInitialize();
TCC0_CaptureStart();
captureValue = TCC0_Capture32bitValueGet(TCC0_CHANNEL0);
Remarks
None.