Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. How to make gpio pins as interrupt pins
QtWS25 Last Chance

How to make gpio pins as interrupt pins

Scheduled Pinned Locked Moved Unsolved Qt for MCUs
3 Posts 2 Posters 943 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lavanya
    wrote on 20 Jan 2021, 10:16 last edited by
    #1

    How to make gpio pins as interrupt pins through qt application to sense change in position of rotary switch e.g:if switch position 1 have to access digital input 1 ,if position is 2 have to access digital input2...like wise.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hdonahue
      wrote on 20 Jan 2021, 16:11 last edited by
      #2

      Hi @Lavanya,

      The Qt for MCUs API supports GUI and platform components required for porting only at the moment. To configure your IO for interrupt and reading that pin's digital state should be implemented in your backend logic using the vendor SDK for IO configuration.

      Which board/chipset are you working on? Once you have setup your interrupt handler and read the pin state, you can implement the logic for how that affects the UI in C++/QML https://doc.qt.io/QtForMCUs/qtul-integratecppqml.html

      1 Reply Last reply
      3
      • L Offline
        L Offline
        Lavanya
        wrote on 21 Jan 2021, 04:55 last edited by
        #3

        Thankyou for your quick reply Mr.hdonahue. Here we are using arm processor AM4378 based custom board. All Digital ios of ic are connected to gpios pins of processor and also the hardware switches are connected to gpio pins. So the logic of hardware is when we rotate the position of switch the gpio values will set. That hardware logic is implemented. At the same time i want to see that in ui application . so that the application will sense the change of switch position and will show gpiox is setted like that and the switch goes colour change in application . This is overall plan so to do that the qt application have to sense the change in position of switch. So only way it will sense when we use interrupt method but i am not getting how to this .
        Can you please help me in regards.
        Apologies for the long post.

        1 Reply Last reply
        0

        1/3

        20 Jan 2021, 10:16

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved