1.33.19.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.