CANopen Slave Documentation
Version 6.16.04
Loading...
Searching...
No Matches
cos404.h File Reference

Detailed Description

This file holds definition CiA 404 version and includes all activated sub-modules.

+ Include dependency graph for cos404.h:

Macros

#define COS_DS404_VERSION_MAJOR   2
 
#define COS_DS404_VERSION_MINOR   2
 

Enumerations

enum  Cos404_Channel_e {
  eCOS404_CHANNEL_1 = 0 ,
  eCOS404_CHANNEL_2 ,
  eCOS404_CHANNEL_3 ,
  eCOS404_CHANNEL_4 ,
  eCOS404_CHANNEL_5 ,
  eCOS404_CHANNEL_6 ,
  eCOS404_CHANNEL_7 ,
  eCOS404_CHANNEL_8 ,
  eCOS404_CHANNEL_9 ,
  eCOS404_CHANNEL_10 ,
  eCOS404_CHANNEL_11 ,
  eCOS404_CHANNEL_12 ,
  eCOS404_CHANNEL_13 ,
  eCOS404_CHANNEL_14 ,
  eCOS404_CHANNEL_15 ,
  eCOS404_CHANNEL_16
}
 

Functions

uint16_t Cos404_GetActiveDataType (void)
 
uint8_t Cos404_SetActiveDataType (uint16_t uwDataTypeV)
 

Enumeration Type Documentation

◆ Cos404_Channel_e

This enumeration provides channel values used in conjunction with CiA 404. Note that the maximum channel value is defined by one of the following definitions in #cos_conf.h:

  • COS_DS404_AI : if the analog input function block is supported
  • COS_DS404_AO : if the analog output function block is supported
Enumerator
eCOS404_CHANNEL_1 

Channel 1

eCOS404_CHANNEL_2 

Channel 2

eCOS404_CHANNEL_3 

Channel 3

eCOS404_CHANNEL_4 

Channel 4

eCOS404_CHANNEL_5 

Channel 5

eCOS404_CHANNEL_6 

Channel 6

eCOS404_CHANNEL_7 

Channel 7

eCOS404_CHANNEL_8 

Channel 8

eCOS404_CHANNEL_9 

Channel 9

eCOS404_CHANNEL_10 

Channel 10

eCOS404_CHANNEL_11 

Channel 11

eCOS404_CHANNEL_12 

Channel 12

eCOS404_CHANNEL_13 

Channel 13

eCOS404_CHANNEL_14 

Channel 14

eCOS404_CHANNEL_15 

Channel 15

eCOS404_CHANNEL_16 

Channel 16

Function Documentation

◆ Cos404_GetActiveDataType()

uint16_t Cos404_GetActiveDataType ( void  )

Get Active data type according to CiA 404 Draft Standard Proposal.

Returns
Value from CoDT

This fuctions returns active data type of CiA 404 software module.

◆ Cos404_SetActiveDataType()

uint8_t Cos404_SetActiveDataType ( uint16_t  uwDataTypeV)
Parameters
[in]uwDataTypeVValue from CoDT that corresponds to data type
Returns
eCosSdo_WRITE_OK on success or any other value from CosSdo_e in case of an error

This function is used to setup the active data type of the CiA 404 profile. The supported values are:

  • CoDT_INTEGER16 : 3
  • CoDT_INTEGER32 : 4
  • CoDT_REAL32 : 8

This parameter has impact on data elements for process and field values of CiA 404 AI and AO.