CANopen Object Dictionary interface. More...
#include "301/CO_driver.h"
Go to the source code of this file.
Data Structures | |
struct | OD_subEntry_t |
Structure describing properties of a variable, located in specific index and sub-index inside the Object Dictionary. More... | |
struct | OD_stream_t |
IO stream structure, used for read/write access to OD variable, part of OD_IO_t. More... | |
struct | OD_IO_t |
Structure for input / output on the OD variable. More... | |
struct | OD_entry_t |
Object Dictionary entry for one OD object. More... | |
struct | OD_t |
Object Dictionary. More... | |
struct | OD_obj_var_t |
Object for single OD variable, used for "VAR" type OD objects. More... | |
struct | OD_obj_array_t |
Object for OD array of variables, used for "ARRAY" type OD objects. More... | |
struct | OD_obj_record_t |
Object for OD sub-elements, used in "RECORD" type OD objects. More... | |
struct | OD_extensionIO_t |
Object pointed by OD_obj_extended_t contains application specified parameters for extended OD object. More... | |
struct | OD_obj_extended_t |
Object for extended type of OD variable, configurable by OD_extensionIO_init() function. More... | |
Macros | |
#define | OD_size_t uint32_t |
Variable of type OD_size_t contains data length in bytes of OD variable. | |
#define | OD_flagsPDO_t uint32_t |
Type of flagsPDO variable from OD_subEntry_t. | |
#define | OD_attr_t uint8_t |
Size of Object Dictionary attribute. | |
Functions | |
OD_size_t | OD_readOriginal (OD_stream_t *stream, uint8_t subIndex, void *buf, OD_size_t count, ODR_t *returnCode) |
Read value from original OD location. More... | |
OD_size_t | OD_writeOriginal (OD_stream_t *stream, uint8_t subIndex, const void *buf, OD_size_t count, ODR_t *returnCode) |
Write value to original OD location. More... | |
const OD_entry_t * | OD_find (const OD_t *od, uint16_t index) |
Find OD entry in Object Dictionary. More... | |
ODR_t | OD_getSub (const OD_entry_t *entry, uint8_t subIndex, OD_subEntry_t *subEntry, OD_IO_t *io, bool_t odOrig) |
Find sub-object with specified sub-index on OD entry returned by OD_find. More... | |
static uint16_t | OD_getIndex (const OD_entry_t *entry) |
Return index from OD entry. More... | |
static void | OD_rwRestart (OD_stream_t *stream) |
Restart read or write operation on OD variable. More... | |
uint32_t | OD_getSDOabCode (ODR_t returnCode) |
Get SDO abort code from returnCode. More... | |
ODR_t | OD_extensionIO_init (const OD_entry_t *entry, void *object, OD_size_t(*read)(OD_stream_t *stream, uint8_t subIndex, void *buf, OD_size_t count, ODR_t *returnCode), OD_size_t(*write)(OD_stream_t *stream, uint8_t subIndex, const void *buf, OD_size_t count, ODR_t *returnCode)) |
Initialise extended OD object with own read/write functions. More... | |
ODR_t | OD_get_i8 (const OD_entry_t *entry, uint8_t subIndex, int8_t *val, bool_t odOrig) |
Get int8_t variable from Object Dictionary. More... | |
ODR_t | OD_get_i16 (const OD_entry_t *entry, uint8_t subIndex, int16_t *val, bool_t odOrig) |
Get int16_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_i32 (const OD_entry_t *entry, uint8_t subIndex, int32_t *val, bool_t odOrig) |
Get int32_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_i64 (const OD_entry_t *entry, uint8_t subIndex, int64_t *val, bool_t odOrig) |
Get int64_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_u8 (const OD_entry_t *entry, uint8_t subIndex, uint8_t *val, bool_t odOrig) |
Get uint8_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_u16 (const OD_entry_t *entry, uint8_t subIndex, uint16_t *val, bool_t odOrig) |
Get uint16_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_u32 (const OD_entry_t *entry, uint8_t subIndex, uint32_t *val, bool_t odOrig) |
Get uint32_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_u64 (const OD_entry_t *entry, uint8_t subIndex, uint64_t *val, bool_t odOrig) |
Get uint64_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_r32 (const OD_entry_t *entry, uint8_t subIndex, float32_t *val, bool_t odOrig) |
Get float32_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_get_r64 (const OD_entry_t *entry, uint8_t subIndex, float64_t *val, bool_t odOrig) |
Get float64_t variable from Object Dictionary, see OD_get_i8. | |
ODR_t | OD_set_i8 (const OD_entry_t *entry, uint8_t subIndex, int8_t val, bool_t odOrig) |
Set int8_t variable in Object Dictionary. More... | |
ODR_t | OD_set_i16 (const OD_entry_t *entry, uint8_t subIndex, int16_t val, bool_t odOrig) |
Set int16_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_i32 (const OD_entry_t *entry, uint8_t subIndex, int32_t val, bool_t odOrig) |
Set int16_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_i64 (const OD_entry_t *entry, uint8_t subIndex, int64_t val, bool_t odOrig) |
Set int16_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_u8 (const OD_entry_t *entry, uint8_t subIndex, uint8_t val, bool_t odOrig) |
Set uint8_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_u16 (const OD_entry_t *entry, uint8_t subIndex, uint16_t val, bool_t odOrig) |
Set uint16_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_u32 (const OD_entry_t *entry, uint8_t subIndex, uint32_t val, bool_t odOrig) |
Set uint32_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_u64 (const OD_entry_t *entry, uint8_t subIndex, uint64_t val, bool_t odOrig) |
Set uint64_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_r32 (const OD_entry_t *entry, uint8_t subIndex, float32_t val, bool_t odOrig) |
Set float32_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_set_r64 (const OD_entry_t *entry, uint8_t subIndex, float64_t val, bool_t odOrig) |
Set float64_t variable in Object Dictionary, see OD_set_i8. | |
ODR_t | OD_getPtr_i8 (const OD_entry_t *entry, uint8_t subIndex, int8_t **val) |
Get pointer to int8_t variable from Object Dictionary. More... | |
ODR_t | OD_getPtr_i16 (const OD_entry_t *entry, uint8_t subIndex, int16_t **val) |
Get pointer to int16_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_i32 (const OD_entry_t *entry, uint8_t subIndex, int32_t **val) |
Get pointer to int32_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_i64 (const OD_entry_t *entry, uint8_t subIndex, int64_t **val) |
Get pointer to int64_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_u8 (const OD_entry_t *entry, uint8_t subIndex, uint8_t **val) |
Get pointer to uint8_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_u16 (const OD_entry_t *entry, uint8_t subIndex, uint16_t **val) |
Get pointer to uint16_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_u32 (const OD_entry_t *entry, uint8_t subIndex, uint32_t **val) |
Get pointer to uint32_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_u64 (const OD_entry_t *entry, uint8_t subIndex, uint64_t **val) |
Get pointer to uint64_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_r32 (const OD_entry_t *entry, uint8_t subIndex, float32_t **val) |
Get pointer to float32_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_r64 (const OD_entry_t *entry, uint8_t subIndex, float64_t **val) |
Get pointer to float64_t variable from OD, see OD_getPtr_i8. | |
ODR_t | OD_getPtr_vs (const OD_entry_t *entry, uint8_t subIndex, char **val, OD_size_t *dataLength) |
Get pointer to "visible string" variable from Object Dictionary. More... | |
ODR_t | OD_getPtr_os (const OD_entry_t *entry, uint8_t subIndex, uint8_t **val, OD_size_t *dataLength) |
Get pointer to "octet string" variable from OD, see OD_getPtr_vs. | |
ODR_t | OD_getPtr_us (const OD_entry_t *entry, uint8_t subIndex, uint16_t **val, OD_size_t *dataLength) |
Get pointer to "unicode string" variable from OD, see OD_getPtr_vs. | |
CANopen Object Dictionary interface.
This file is part of CANopenNode, an opensource CANopen Stack. Project home page is https://github.com/CANopenNode/CANopenNode. For more information on CANopen see http://www.can-cia.org/.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.