Quadrature Driver API exploration in WICED SDK

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiTo_1583836
Level 5
Level 5
50 likes received 25 likes received 10 likes received

Hi all,


I am trying to better understand the Quadrature Driver API available in: ./WICED-Smart-SDK/include/Drivers/quadraturedriver.h


It sounds that a structure is defined in: ./WICED-Smart-SDK/include/Drivers/hidddriversconfig.h


In this specific header file I found the following comment:


/// Configuration value used for each GPIO pin used for quadrature. This

    /// allows configuration of pull up/down, etc. just like a GPIO.

    WORD    quadratureInputGpioConfig;

    /// If TRUE, Port 0 selected as quadrature input port (P2,P3,P4,P5,P6,P7)

    /// If FALSE, Port 2 selected as quadrature input port (P32,P33,P34,P35,P36,P37)

    BYTE    port0PinsUsedAsQuadratureInput;

How can we set this structure? let's say we want to use GPIO P2 and GPIO P3 as inputs for quadrature decoder.


Also what are the calls that need to be done to setup properly the quadrature interface on the BCM20737? I see the following API:


void quad_hwInit(void);


void quad_init(void);


void quad_configurePortPins(void); ---> not parameters, so I believe we need to set something else up.



0 Likes
1 Solution
Anonymous
Not applicable

Hello 79 rpm,

No samples at present.

We will update you when the developers are able to share the code.

Thanks,

JT

View solution in original post

0 Likes
5 Replies
Anonymous
Not applicable

Hello 79 rpm,

No samples at present.

We will update you when the developers are able to share the code.

Thanks,

JT

0 Likes

Ok thanks JT, let me know. There is a design in progress around that feature.

0 Likes

Hi JT,

Do you have any news on this topic?

Thanks,

0 Likes
Anonymous
Not applicable

Hey Guys,

This API is not supported in the current SDK.

Thanks,

JT

0 Likes

Hi JT,

Thanks a lot for the confirmation!

0 Likes