![]() |
ECAT_Slave_in_ПЧ2П_c402
0.8
Реализация EtherCAT Slave для CM TMS320F28388D
|
#include "ecat_def.h"Макросы | |
| #define | BOOLEAN(x) UINT8 x:1 |
| Macro to define BOOLEAN object entry. Подробнее... | |
| #define | BIT1(x) UINT8 x:1 |
| Macro to define BIT1 object entry. Подробнее... | |
| #define | BIT2(x) UINT8 x:2 |
| Macro to define BIT2 object entry. Подробнее... | |
| #define | BIT3(x) UINT8 x:3 |
| Macro to define BIT3 object entry. Подробнее... | |
| #define | BIT4(x) UINT8 x:4 |
| Macro to define BIT4 object entry. Подробнее... | |
| #define | BIT5(x) UINT8 x:5 |
| Macro to define BIT5 object entry. Подробнее... | |
| #define | BIT6(x) UINT8 x:6 |
| Macro to define BIT5 object entry. Подробнее... | |
| #define | BIT7(x) UINT8 x:7 |
| Macro to define BIT6 object entry. Подробнее... | |
| #define | BIT8(x) UINT8 x:8 |
| Macro to define BIT7 object entry. Подробнее... | |
| #define | ALIGN0(x) |
| #define | ALIGN1(x) UINT8 x:1; |
| Macro to define ALIGN1 object entry. Подробнее... | |
| #define | ALIGN2(x) UINT8 x:2; |
| Macro to define ALIGN2 object entry. Подробнее... | |
| #define | ALIGN3(x) UINT8 x:3; |
| Macro to define ALIGN3 object entry. Подробнее... | |
| #define | ALIGN4(x) UINT8 x:4; |
| Macro to define ALIGN4 object entry. Подробнее... | |
| #define | ALIGN5(x) UINT8 x:5; |
| Macro to define ALIGN5 object entry. Подробнее... | |
| #define | ALIGN6(x) UINT8 x:6; |
| Macro to define ALIGN6 object entry. Подробнее... | |
| #define | ALIGN7(x) UINT8 x:7; |
| Macro to define ALIGN7 object entry. Подробнее... | |
| #define | ALIGN8(x) UINT8 x:8; |
| Macro to define ALIGN8 object entry. Подробнее... | |
| #define | ALIGN9(x) UINT16 x:9; |
| Macro to define ALIGN9 object entry. Подробнее... | |
| #define | ALIGN10(x) UINT16 x:10; |
| Macro to define ALIGN10 object entry. Подробнее... | |
| #define | ALIGN11(x) UINT16 x:11; |
| Macro to define ALIGN11 object entry. Подробнее... | |
| #define | ALIGN12(x) UINT16 x:12; |
| Macro to define ALIGN12 object entry. Подробнее... | |
| #define | ALIGN13(x) UINT16 x:13; |
| Macro to define ALIGN13 object entry. Подробнее... | |
| #define | ALIGN14(x) UINT16 x:14; |
| Macro to define ALIGN14 object entry. Подробнее... | |
| #define | ALIGN15(x) UINT16 x:15; |
| Macro to define ALIGN15 object entry. Подробнее... | |
| #define | PROTO extern |
Функции | |
| void | ECAT_CheckTimer (void) |
| This function shall be called every 1ms. Подробнее... | |
| void | PDI_Isr (void) |
| void | Sync0_Isr (void) |
| void | Sync1_Isr (void) |
| void | ECAT_Application (void) |
| ECAT_Application (prev. SSC versions "COE_Application") this function calculates and the physical process signals and triggers the input mapping. Подробнее... | |
| PROTO void | PDO_ResetOutputs (void) |
| PROTO void | PDO_ReadInputs (void) |
| void | PDO_InputMapping (void) |
| This function will copies the inputs from the local memory to the ESC memory. Подробнее... | |
| void | ECAT_SetLedIndication (void) |
| This function shall called within a 1ms cycle. Set Run and Error Led depending on the Led state. Подробнее... | |
| PROTO void | CalcSMCycleTime (void) |
Переменные | |
| PROTO BOOL | bEcatWaitForInputUpdate |
| Wait for input update. Подробнее... | |
| PROTO BOOL | bEtherCATRunLed |
| Current run LED value. Подробнее... | |
| PROTO BOOL | bEtherCATErrorLed |
| Current error LED value. Подробнее... | |
| PROTO BOOL | bRunApplication |
| Indicates if the stack shall be running (if false the Hardware will be released) Подробнее... | |
Changes to version V5.11:
V5.12 EEPROM1: get read size from register 0x502.6
Changes to version V5.10:
V5.11 ECAT10: change PROTO handling to prevent compiler errors
Changes to version V5.01:
V5.10 ECAT13: Update Synchronisation handling (FreeRun,SM Sync, Sync0, Sync1)
Compare DC UINT configuration (by ESC Config data) vs. DC activation register settings
Update 0x1C3x entries
V5.10 ECAT4: Update alignment macro for 8 to 15 bit alignments (16 and 32 Bit controllers)
Bugfix calculate LED blink frequency
Changes to version - :
V5.01 : Start file change log
См. определение в файле ecatappl.h