![]() |
ECAT_Slave_in_ПЧ2П_c402
0.8
Реализация EtherCAT Slave для CM TMS320F28388D
|
Implementation This file contains an example how to use the FoE services. Подробнее...
#include "ecat_def.h"#include "ecatslv.h"#include "ecatfoe.h"#include "foeappl.h"#include "applInterface.h"Макросы | |
| #define | _FOEAPPL_ 1 |
| #define | _FOEAPPL_ 0 |
Функции | |
| UINT16 | FOE_Read (UINT16 MBXMEM *pName, UINT16 nameSize, UINT16 MBXMEM *pData, UINT32 password) |
| The function starts a file reading. Подробнее... | |
| UINT16 | FOE_Write (UINT16 MBXMEM *pName, UINT16 nameSize, UINT32 password) |
| The function starts a file writing. Подробнее... | |
| UINT16 | FOE_Data (UINT16 MBXMEM *pData, UINT16 Size) |
| The function is called to write the next part of a file. Подробнее... | |
| UINT16 | FOE_Ack (UINT32 fileOffset, UINT16 MBXMEM *pData) |
| The function is called when the reading of a part of a file is acknowledged. Подробнее... | |
| UINT16 | FOE_Busy (UINT16 done, UINT32 fileOffset, UINT16 MBXMEM *pData) |
| The function is called when the reading of a part of a file should be repeated. Подробнее... | |
| void | FOE_Error (UINT32 errorCode) |
| The function is called when a file transfer is aborted from the other station. Подробнее... | |
Implementation This file contains an example how to use the FoE services.
Changes to version V5.11:
V5.12 FOE1: update new interface,move the FoE sample to sampleappl,add FoE application callback functions
Changes to version V5.10:
V5.11 FOE2: FoE_Read() check File name buffer before store the requested file name, add string terminator
V5.11 TEST5: send a FoE busy on a FoE read request
V5.11 TEST9: "add behaviour 0x2020.7 (SDO requests on 0x3006.0 are set to pending until an FoE read request on ""UnlockSdoResp"" is received or in case that no mbx queue is supported when a new mbx request was received)"
Changes to version V5.0:
V5.10 FOE2: Update file handling to support File sizes greater than 0x8000 Bytes (change value of "FOE_MAXDATA")
Changes to version V4.20:
V5.0 FOE3: Add additional file name copy operation to provide name byte swapping
V5.0 FOE5: Add FoE test operation (FOE_SAVE_FILES need to be disabled). On download only the files size is save. On upload a file with incrementing content and the previous downloaded size will be created.
V5.0 FOE6: Save file if MBX 16Bit access is enabled
Changes to version V4.11:
V4.20 FOE 2: Add File store compiler switch
V4.20 FOE 1: Removed FILESUPPORT
V4.11 FOE 1: nFileWriteOffset is now a 32bit variable to extend the maximum file size
Changes to version V3.20:
V4.10 FOE 1-14: Filetransfer over FoE: Files can be read and stored to harddisk
without any filesizelimitation (FILESUPPORT must defined)
См. определение в файле foeappl.c