...
If necessary, the following example show how to call the blocking receive function for the interface of the CANopen node AppNode:
Code Block | ||
---|---|---|
| ||
CO_IF_FRM frame;
CPU_INT16S err;
:
err = COIfRead (&(AppNode.If), &frame);
if (err < 0) {
/* error in interface layer */
} else {
/* frame contains received data */
}
: |