1.3.23.53 1.4.24.53 1.5.22.53 1.6.24.53 1.7.25.53 1.29.26.53 1.30.16.53 1.31.16.53 1.32.29.53 1.33.18.53 1.37.16.53 1.38.24.53 1.39.21.53 1.40.23.53 TCx_Capture32bitChannel1Get Function

C

/* x = TC instance number */
uint32_t TCx_Capture32bitChannel1Get( 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

uint32_t captureValue = 0;
TC0_CaptureInitialize();
TC0_CaptureStart();
captureValue = TC0_Capture32bitChannel1Get();

Remarks

None.