Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
emcy.h File Reference
Declarations of the functions that manage EMCY (emergency) messages. More...
Go to the source code of this file.
Functions | |
| UNS8 | EMCY_setError (CO_Data *d, UNS16 errCode, UNS8 errRegMask, UNS16 addInfo) |
| Sets a new error with code errCode. | |
| void | EMCY_errorRecovered (CO_Data *d, UNS16 errCode) |
| Indicates it has recovered from error errCode. | |
| void | emergencyInit (CO_Data *d) |
| Start EMCY consumer and producer. | |
| void | emergencyStop (CO_Data *d) |
| Stop EMCY producer and consumer. | |
| void | proceedEMCY (CO_Data *d, Message *m) |
| This function is responsible to process an EMCY canopen-message. | |
Detailed Description
Declarations of the functions that manage EMCY (emergency) messages.
- Date:
- Wed Sep 26 2007
Definition in file emcy.h.
Function Documentation
| void EMCY_errorRecovered | ( | CO_Data * | d, |
| UNS16 | errCode | ||
| ) |
Indicates it has recovered from error errCode.
Also clears corresponding bits in Error register (1001h)
- Parameters:
-
*d Pointer on a CAN object data structure errCode The error code
Deletes error errCode. Also clears corresponding bits in Error register (1001h)
- Parameters:
-
d errCode Code of the error errRegister Bits of Error register (1001h) to be set.
- Returns:
- 1 if error, 0 if successful
| UNS8 EMCY_setError | ( | CO_Data * | d, |
| UNS16 | errCode, | ||
| UNS8 | errRegMask, | ||
| UNS16 | addInfo | ||
| ) |
Sets a new error with code errCode.
Also sets corresponding bits in Error register (1001h)
- Parameters:
-
*d Pointer on a CAN object data structure errCode The error code errRegMask addInfo
- Returns:
Sets a new error with code errCode. Also sets corresponding bits in Error register (1001h)
- Parameters:
-
d errCode Code of the error errRegister Bits of Error register (1001h) to be set.
- Returns:
- 1 if error, 0 if successful
| void emergencyInit | ( | CO_Data * | d ) |
| void emergencyStop | ( | CO_Data * | d ) |
This function is responsible to process an EMCY canopen-message.
- Parameters:
-
*d Pointer on a CAN object data structure *m Pointer on the CAN-message which has to be analysed.
This function is responsible to process an EMCY canopen-message.
- Parameters:
-
d m The CAN-message which has to be analysed.
Generated on Tue Jul 12 2022 17:11:51 by
1.7.2