1.2.24.47 1.3.24.47 1.4.25.47 1.5.23.47 1.6.25.47 1.7.26.47 1.29.27.47 1.30.17.47 1.31.17.47 1.33.19.47 1.37.17.47 1.40.24.47 TCCx_Capture24bitValueGet Function
C
/* x = TCC instance number */
uint32_t TCCx_Capture24bitValueGet( 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_Capture24bitValueGet(TCC0_CHANNEL0);
Remarks
None.