Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

CODirWrBuffer

Description

This function writes a buffer byte stream to the given object directory. The object entry is addressed with the given key and the bytes will be read from to the given source buffer of the given length.

Prototype

CPU_INT16S CODirWrBuffer(CO_DIR     *cod,
                         CPU_INT32U  key,
                         CPU_INT08U *buffer,
                         CPU_INT32U  len);

Parameter Meaning
cod pointer to the CANopen object directory
key object entry key; should be generated with the macro CO_DEV()
buffer pointer to the source bytes
lenlength of source buffer

Returned Value

 = CO_ERR.NONE   Successful operation

!= CO_ERR.NONE  An error is detected (see section "Error Identification")

Example

The following example writes the value to the hypothetical application specific object entry "[1234:56]" within the object directory of the CANopen node AppNode.

  • No labels