CANopenNode
CANopen protocol stack
|
Extension of OD object, which can optionally be specified by application in initialization phase with OD_extension_init() function. More...
#include <CO_ODinterface.h>
Data Fields | |
void * | object |
Object on which read and write will operate, part of OD_stream_t. | |
ODR_t(* | read )(OD_stream_t *stream, void *buf, OD_size_t count, OD_size_t *countRead) |
Application specified read function pointer. | |
ODR_t(* | write )(OD_stream_t *stream, const void *buf, OD_size_t count, OD_size_t *countWritten) |
Application specified write function pointer. | |
uint8_t | flagsPDO [OD_FLAGS_PDO_SIZE] |
PDO flags bit-field provides one bit for each OD variable, which exist inside OD object at specific sub index. | |
Extension of OD object, which can optionally be specified by application in initialization phase with OD_extension_init() function.
ODR_t(* OD_extension_t::read) (OD_stream_t *stream, void *buf, OD_size_t count, OD_size_t *countRead) |
Application specified read function pointer.
If NULL, then read will be disabled. OD_readOriginal can be used here to keep the original read function. For function description see OD_IO_t.
ODR_t(* OD_extension_t::write) (OD_stream_t *stream, const void *buf, OD_size_t count, OD_size_t *countWritten) |
Application specified write function pointer.
If NULL, then write will be disabled. OD_writeOriginal can be used here to keep the original write function. For function description see OD_IO_t.
uint8_t OD_extension_t::flagsPDO[OD_FLAGS_PDO_SIZE] |
PDO flags bit-field provides one bit for each OD variable, which exist inside OD object at specific sub index.
If application clears that bit, and OD variable is mapped to an event driven TPDO, then TPDO will be sent.
OD_FLAGS_PDO_SIZE can have a value from 0 to 32 bytes, which corresponds to 0 to 256 available bits. If, for example, OD_FLAGS_PDO_SIZE has value 4, then OD variables with sub index up to 31 will have the TPDO requesting functionality. See also OD_requestTPDO and OD_TPDOtransmitted.