• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    jml
    last edited by 26 Mar 2023, 00:23

    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?

    undefined 1 Reply Last reply 26 Mar 2023, 00:34 Reply Quote 0
    • undefined
      jml @jml
      last edited by 26 Mar 2023, 00:34

      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 😢

      undefined 1 Reply Last reply 26 Mar 2023, 01:45 Reply Quote 0
      • undefined
        Falcounet @jml
        last edited by Falcounet 26 Mar 2023, 01:45

        @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.

        undefined 1 Reply Last reply 26 Mar 2023, 02:21 Reply Quote 1
        • undefined
          jml @Falcounet
          last edited by 26 Mar 2023, 02:21

          @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

          undefined 1 Reply Last reply 26 Mar 2023, 02:23 Reply Quote 0
          • undefined
            jml @jml
            last edited by jml 26 Mar 2023, 02:23

            @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
            • undefined Phaedrux marked this topic as a question 26 Mar 2023, 04:35
            • undefined Phaedrux has marked this topic as solved 26 Mar 2023, 04:35
            2 out of 5
            • First post
              2/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA