rtlabs-com / c-open

CANopen stack for embedded devices
http://www.rt-labs.com
Other
79 stars 40 forks source link

Make it possible to trigger only PDOs for a specific object #33

Closed nattgris closed 3 years ago

nattgris commented 3 years ago

The event used to trigger event-based PDOs is not necessarily the same for all PDOs, however there is no API to trigger the transmission of anything but all enabled PDOs.

Add a job type and supporting functions to trigger only PDOs which have a specified object mapped.

Also add documentation and prototype that was missing for co_pdo_event().

hefloryd commented 3 years ago

Great, I'll update the PR with a test-case and merge this.