Synergy Software Package User's Manual

#include <r_input_capture_api.h>

Data Fields

uint8_t channel
 The channel in use.
 
uint8_t capture_irq_ipl
 Capture interrupt priority.
 
uint8_t overflow_irq_ipl
 Overflow interrupt priority.
 
input_capture_mode_t mode
 The mode of measurement to be performed.
 
input_capture_signal_edge_t edge
 The triggering edge to start a measurement (rise or fall).
 
input_capture_repetition_t repetition
 One-shot or periodic measurement.
 
bool autostart
 Specifies whether interrupts are enabled or not after open.
 
void const * p_extend
 
void(* p_callback )(input_capture_callback_args_t *p_args)
 
void const * p_context
 Pointer to user's context data, to be passed to the callback.
 

Detailed Description

User configuration structure, passed to input_capture_api_t::open function

Field Documentation

◆ p_callback

void(* input_capture_cfg_t::p_callback) (input_capture_callback_args_t *p_args)

Pointer to user's callback function, or NULL if no interrupt desired.

◆ p_extend

void const* input_capture_cfg_t::p_extend

REQUIRED. Pointer to peripheral-specific extension parameters. See gpt_input_capture_extend_t for GPT.


The documentation for this struct was generated from the following file: