24.6.4.9.1 Function tc_get_capture_value()

Gets the TC module capture value.

uint32_t tc_get_capture_value( const struct tc_module *const module_inst, const enum tc_compare_capture_channel channel_index)

Retrieves the capture value in the indicated TC module capture channel.

Table 24-30. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the software module instance struct

[in]

channel_index

Index of the Compare Capture channel to read

Returns

Capture value stored in the specified timer channel.