SmartSnippets DA1459x SDK
hw_quad_config_t Struct Reference

Initialization Struct for use with "hw_quad_init()". More...

#include <hw_quad_v2.h>

Detailed Description

Initialization Struct for use with "hw_quad_init()".

Note
clk_prescaler - defines whether the prescaler will be enabled or not.
clk_div - defines the number of the input clock cycles minus one, that are required to generate one logic clock cycle.
chz_event_mode - defines whether QDEC_ZCNT_REG will count events as normal Quadrature pulse pairs or act as a rising-and-falling edge counter for both axis ports (NOTE: in the latter mode, if both ports change at the same time, the counter increases by 1).
chy_event_mode - defines whether QDEC_ZYNT_REG will count events as normal Quadrature pulse pairs or act as a rising-and-falling edge counter for both axis ports (NOTE: in the latter mode, if both ports change at the same time, the counter increases by 1).
chx_event_mode - defines whether QDEC_XCNT_REG will count events as normal Quadrature pulse pairs or act as a rising-and-falling edge counter for both axis ports (NOTE: in the latter mode, if both ports change at the same time, the counter increases by 1).
chz_port_sel - defines the Quadrature Decoder Z-Axis input port pair.
chy_port_sel - defines the Quadrature Decoder Y-Axis input port pair.
chx_port_sel - defines the Quadrature Decoder Z-Axis input port pair.

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