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 1. Parameters
Data direction Parameter name Description

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