Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Where is candevice.h ?

    Scheduled Pinned Locked Moved Solved
    Firmware developers
    2
    5
    222
    Loading More Posts
    • 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.
    • jmlundefined
      jml
      last edited by

      I was just trying to understand how the CAN messages work. In CanInterface.cpp, I can see these functions (each calling on the next):
      SendRequestAndGetStandardReply
      SendRequestAndGetCustomReply
      SendCanMessage
      SendMessage

      However, SendMessage is not defined anywhere. I think it should be within CanDevice.h, but CanDevice.h isn't anywhere, nor is CanId.h, or CanMessageFormats.h - yet these are #included in some of the .cpp files.

      Is the repository missing these? Or are we supposed to get these header files elsewhere?

      jmlundefined 1 Reply Last reply Reply Quote 0
      • jmlundefined
        jml @jml
        last edited by

        CanDevice.h I still cannot find. But I found this:
        https://github.com/Duet3D/CANlib
        which includes the CanId and the CanMessageFormats, but still can't find CanDevice.h 😢

        Falcounetundefined 1 Reply Last reply Reply Quote 0
        • Falcounetundefined
          Falcounet @jml
          last edited by Falcounet

          @jml It is part of Core2NG : https://github.com/Duet3D/CoreN2G/blob/3.5-dev/src/CanDevice.h

          GitHub has a nice search engine that allow you to search on all the repositories of an organization so if you do a search for SendMessage, you easily find where it is defined.

          jmlundefined 1 Reply Last reply Reply Quote 1
          • jmlundefined
            jml @Falcounet
            last edited by

            @Falcounet Thank you for finding it! Can you teach me how to do the search? When I do it, github cannot find SendMessage or CanDevice.h.

            This is what I search:
            org:Duet3D SendMessage
            org:Duet3D CanDevice.h

            jmlundefined 1 Reply Last reply Reply Quote 0
            • jmlundefined
              jml @jml
              last edited by jml

              @jml nevermind - I had to sign in in order for github to show Code results. Thanks!
              (is there a way to mark this post solved?)

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined Phaedrux marked this topic as a question
              • Phaedruxundefined Phaedrux has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA