1.38.24.54 TCx_Capture8bitChannel0Get Function

C

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

uint8_t captureValue = 0;
TC0_CaptureInitialize();
TC0_CaptureStart();
captureValue = TC0_Capture8bitChannel0Get();

Remarks

None.