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

Detailed Description

LSS offers the possibility to inquire and change the settings of certain parameters of the local layers on a CANopen module with LSS Slave capabilities by a CANopen module with LSS Master capabilities via the CAN Network. The following parameters can be inquired and/or changed by the use of LSS:

  • Node-ID of the CANopen Slave
  • Bit timing parameters of the physical layer (baud rate)
  • LSS address (Identity Object, Index 1018H)

By using LSS a LSS Slave can be configured for a CANopen network without using any devices like DIP-switches for setting the parameters. There are several solutions available for LSS Slaves with and without a unique LSS-address or non-volatile storage.

+ Include dependency graph for cos_lss.h:

Functions

void CosLssConfigureNodeId (void)
 
void CosLssInquiryService (uint8_t ubServiceV)
 
void CosLssMessageHandler (void)
 

Function Documentation

◆ CosLssConfigureNodeId()

void CosLssConfigureNodeId ( void  )

Configure Node ID.

By means of this service the LSS Master configures the NMT-address parameter of a LSS Slave. This service allows only one LSS Slave in configuration mode. The remote result parameter confirms the success or failure of the service. In case of a failure optionally the reason is confirmed.

◆ CosLssInquiryService()

void CosLssInquiryService ( uint8_t  ubServiceV)

Inquiry services.

Parameters
ubServiceVservice type

The inquiry services are available only in configuration mode.

◆ CosLssMessageHandler()

void CosLssMessageHandler ( void  )

Evaluate LSS messages.

This function is called by main message handler function CosMgrMessageHandler(). It evaluates the value of the first byte and calls the appropriate functions.