Go to the documentation of this file.
34 #define CO_CONFIG_LSS (CO_CONFIG_LSS_SLAVE)
37 #if ((CO_CONFIG_LSS) & (CO_CONFIG_LSS_SLAVE | CO_CONFIG_LSS_MASTER)) || defined CO_DOXYGEN
144 #define CO_LSS_FASTSCAN_BITCHECK_VALID(bit) ((bit>=CO_LSS_FASTSCAN_BIT0 && bit<=CO_LSS_FASTSCAN_BIT31) || bit==CO_LSS_FASTSCAN_CONFIRM)
156 #define CO_LSS_FASTSCAN_LSS_SUB_NEXT_VALID(index) (index>=CO_LSS_FASTSCAN_VENDOR_ID && index<=CO_LSS_FASTSCAN_SERIAL)
222 #define CO_LSS_BIT_TIMING_VALID(index) (index != 5 && (index >= CO_LSS_BIT_TIMING_1000 && index <= CO_LSS_BIT_TIMING_AUTO))
227 #define CO_LSS_NODE_ID_ASSIGNMENT 0xFFU
232 #define CO_LSS_NODE_ID_VALID(nid) ((nid >= 1 && nid <= 0x7F) || nid == CO_LSS_NODE_ID_ASSIGNMENT)
237 #define CO_LSS_ADDRESS_EQUAL( a1, a2) \
238 (a1.identity.productCode == a2.identity.productCode && \
239 a1.identity.revisionNumber == a2.identity.revisionNumber && \
240 a1.identity.serialNumber == a2.identity.serialNumber && \
241 a1.identity.vendorID == a2.identity.vendorID)
unsigned long int uint32_t
UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.
Definition: CO_driver.h:155
Interface between CAN hardware and CANopenNode.
@ CO_LSS_FASTSCAN_BIT31
dito
Definition: CO_LSS.h:140
@ CO_LSS_INQUIRE_PRODUCT
Inquire identity product-code protocol.
Definition: CO_LSS.h:100
@ CO_LSS_CFG_BIT_TIMING
Configure bit timing parameter protocol.
Definition: CO_LSS.h:94
CO_LSS_cfgBitTiming_t
Error codes for Configure bit timing parameters protocol.
Definition: CO_LSS.h:118
@ CO_LSS_BIT_TIMING_800
800kbit/s
Definition: CO_LSS.h:191
unsigned int uint16_t
UNSIGNED16 in CANopen (0006h), 16-bit unsigned integer.
Definition: CO_driver.h:153
@ CO_LSS_INQUIRE_SERIAL
Inquire identity serial-number protocol.
Definition: CO_LSS.h:102
@ CO_LSS_BIT_TIMING_50
50kbit/s
Definition: CO_LSS.h:196
CO_LSS_cs_t
LSS protocol command specifiers.
Definition: CO_LSS.h:86
@ CO_LSS_SWITCH_STATE_SEL_PRODUCT
Switch state selective protocol - Product code.
Definition: CO_LSS.h:89
CO_LSS_fastscan_lss_sub_next
Fastscan LSSsub, LSSnext.
Definition: CO_LSS.h:149
@ CO_LSS_CFG_STORE_FAILED
Storage media access error.
Definition: CO_LSS.h:130
@ CO_LSS_CFG_BIT_TIMING_MANUFACTURER
Manufacturer specific error.
Definition: CO_LSS.h:121
@ CO_LSS_FASTSCAN_CONFIRM
All LSS slaves waiting for scan respond and previous scan is reset.
Definition: CO_LSS.h:141
@ CO_LSS_SWITCH_STATE_SEL_SERIAL
Switch state selective protocol - Serial number.
Definition: CO_LSS.h:91
@ CO_LSS_STATE_WAITING
LSS FSA waiting for requests.
Definition: CO_LSS.h:182
@ CO_LSS_CFG_ACTIVATE_BIT_TIMING
Activate bit timing parameter protocol.
Definition: CO_LSS.h:95
@ CO_LSS_STATE_CONFIGURATION
LSS FSA waiting for configuration.
Definition: CO_LSS.h:183
@ CO_LSS_CFG_NODE_ID
Configure node ID protocol.
Definition: CO_LSS.h:93
@ CO_LSS_CFG_NODE_ID_OK
Protocol successfully completed.
Definition: CO_LSS.h:110
@ CO_LSS_CFG_STORE_OK
Protocol successfully completed.
Definition: CO_LSS.h:128
@ CO_LSS_SWITCH_STATE_GLOBAL
Switch state global protocol.
Definition: CO_LSS.h:87
CO_LSS_state_t
LSS finite state automaton.
Definition: CO_LSS.h:181
CO_LSS_cfgStore_t
Error codes for Store configuration protocol.
Definition: CO_LSS.h:127
@ CO_LSS_SWITCH_STATE_SEL_REV
Switch state selective protocol - Revision number.
Definition: CO_LSS.h:90
@ CO_LSS_FASTSCAN_BIT0
Least significant bit of IDnumbners bit area to be checked.
Definition: CO_LSS.h:138
@ CO_LSS_INQUIRE_REV
Inquire identity revision-number protocol.
Definition: CO_LSS.h:101
@ CO_LSS_BIT_TIMING_500
500kbit/s
Definition: CO_LSS.h:192
@ CO_LSS_FASTSCAN_SERIAL
Serial number.
Definition: CO_LSS.h:153
@ CO_LSS_BIT_TIMING_125
125kbit/s
Definition: CO_LSS.h:194
@ CO_LSS_INQUIRE_VENDOR
Inquire identity vendor-ID protocol.
Definition: CO_LSS.h:99
CO_LSS_bitTimingTable_t
Definition of table_index for /CiA301/ bit timing table.
Definition: CO_LSS.h:189
@ CO_LSS_CFG_BIT_TIMING_OK
Protocol successfully completed.
Definition: CO_LSS.h:119
@ CO_LSS_BIT_TIMING_20
20kbit/s
Definition: CO_LSS.h:197
@ CO_LSS_CFG_STORE_NOT_SUPPORTED
Store configuration not supported.
Definition: CO_LSS.h:129
@ CO_LSS_INQUIRE_NODE_ID
Inquire node-ID protocol.
Definition: CO_LSS.h:103
@ CO_LSS_FASTSCAN_REV
Revision number.
Definition: CO_LSS.h:152
@ CO_LSS_BIT_TIMING_10
10kbit/s
Definition: CO_LSS.h:198
@ CO_LSS_CFG_STORE_MANUFACTURER
Manufacturer specific error.
Definition: CO_LSS.h:131
@ CO_LSS_IDENT_FASTSCAN
LSS Fastscan protocol.
Definition: CO_LSS.h:98
@ CO_LSS_CFG_NODE_ID_OUT_OF_RANGE
NID out of range.
Definition: CO_LSS.h:111
@ CO_LSS_FASTSCAN_PRODUCT
Product code.
Definition: CO_LSS.h:151
@ CO_LSS_BIT_TIMING_AUTO
Automatic bit rate detection.
Definition: CO_LSS.h:199
@ CO_LSS_BIT_TIMING_1000
1000kbit/s
Definition: CO_LSS.h:190
@ CO_LSS_BIT_TIMING_250
250kbit/s
Definition: CO_LSS.h:193
CO_LSS_cfgNodeId_t
Error codes for Configure node ID protocol.
Definition: CO_LSS.h:109
@ CO_LSS_CFG_BIT_TIMING_OUT_OF_RANGE
Bit timing / Bit rate not supported.
Definition: CO_LSS.h:120
@ CO_LSS_CFG_STORE
Store configuration protocol.
Definition: CO_LSS.h:96
@ CO_LSS_SWITCH_STATE_SEL_VENDOR
Switch state selective protocol - Vendor ID.
Definition: CO_LSS.h:88
CO_LSS_fastscan_bitcheck
Fastscan BitCheck.
Definition: CO_LSS.h:137
static const uint16_t CO_LSS_bitTimingTableLookup[]
Lookup table for conversion between bit timing table and numerical bit rate.
Definition: CO_LSS.h:206
@ CO_LSS_CFG_NODE_ID_MANUFACTURER
Manufacturer specific error.
Definition: CO_LSS.h:112
The LSS address is a 128 bit number, uniquely identifying each node.
Definition: CO_LSS.h:162
@ CO_LSS_SWITCH_STATE_SEL
Switch state selective protocol - Slave response.
Definition: CO_LSS.h:92
@ CO_LSS_IDENT_SLAVE
LSS Fastscan response.
Definition: CO_LSS.h:97
@ CO_LSS_FASTSCAN_VENDOR_ID
Vendor ID.
Definition: CO_LSS.h:150