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.
Dependents: EasyCAT_LAB_simple EasyCAT_LAB_very_simple EasyCAT_LAB
Headerfile for ethercatsoe.c. More...
Go to the source code of this file.
| Typedefs | |
| typedef PACKED_BEGIN struct PACKED | ec_SoEnamet | 
| SoE name structure. | |
| typedef PACKED_END PACKED_BEGIN struct PACKED | ec_SoElistt | 
| SoE list structure. | |
| typedef PACKED_END PACKED_BEGIN struct PACKED | ec_SoEmappingt | 
| SoE IDN mapping structure. | |
| typedef PACKED_BEGIN struct PACKED | ec_SoEattributet | 
| SoE attribute structure. | |
| Functions | |
| int | ecx_SoEread (ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elementflags, uint16 idn, int *psize, void *p, int timeout) | 
| SoE read, blocking. | |
| int | ecx_SoEwrite (ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elementflags, uint16 idn, int psize, void *p, int timeout) | 
| SoE write, blocking. | |
| int | ecx_readIDNmap (ecx_contextt *context, uint16 slave, int *Osize, int *Isize) | 
| SoE read AT and MTD mapping. | |
Detailed Description
Headerfile for ethercatsoe.c.
Definition in file ethercatsoe.h.
Typedef Documentation
| typedef PACKED_BEGIN struct PACKED ec_SoEattributet | 
SoE attribute structure.
| typedef PACKED_END PACKED_BEGIN struct PACKED ec_SoElistt | 
SoE list structure.
| typedef PACKED_END PACKED_BEGIN struct PACKED ec_SoEmappingt | 
SoE IDN mapping structure.
| typedef PACKED_BEGIN struct PACKED ec_SoEnamet | 
SoE name structure.
Function Documentation
| int ecx_readIDNmap | ( | ecx_contextt * | context, | 
| uint16 | slave, | ||
| int * | Osize, | ||
| int * | Isize | ||
| ) | 
SoE read AT and MTD mapping.
SoE has standard indexes defined for mapping. This function tries to read them and collect a full input and output mapping size of designated slave.
- Parameters:
- 
  [in] context = context struct [in] slave = Slave number [out] Osize = Size in bits of output mapping (MTD) found [out] Isize = Size in bits of input mapping (AT) found 
- Returns:
- >0 if mapping successful.
Definition at line 312 of file ethercatsoe.c.
| int ecx_SoEread | ( | ecx_contextt * | context, | 
| uint16 | slave, | ||
| uint8 | driveNo, | ||
| uint8 | elementflags, | ||
| uint16 | idn, | ||
| int * | psize, | ||
| void * | p, | ||
| int | timeout | ||
| ) | 
SoE read, blocking.
The IDN object of the selected slave and DriveNo is read. If a response is larger than the mailbox size then the response is segmented. The function will combine all segments and copy them to the parameter buffer.
- Parameters:
- 
  [in] context = context struct [in] slave = Slave number [in] driveNo = Drive number in slave [in] elementflags = Flags to select what properties of IDN are to be transferred. [in] idn = IDN. [in,out] psize = Size in bytes of parameter buffer, returns bytes read from SoE. [out] p = Pointer to parameter buffer [in] timeout = Timeout in us, standard is EC_TIMEOUTRXM 
- Returns:
- Workcounter from last slave response
Definition at line 78 of file ethercatsoe.c.
| int ecx_SoEwrite | ( | ecx_contextt * | context, | 
| uint16 | slave, | ||
| uint8 | driveNo, | ||
| uint8 | elementflags, | ||
| uint16 | idn, | ||
| int | psize, | ||
| void * | p, | ||
| int | timeout | ||
| ) | 
SoE write, blocking.
The IDN object of the selected slave and DriveNo is written. If a response is larger than the mailbox size then the response is segmented.
- Parameters:
- 
  [in] context = context struct [in] slave = Slave number [in] driveNo = Drive number in slave [in] elementflags = Flags to select what properties of IDN are to be transferred. [in] idn = IDN. [in] psize = Size in bytes of parameter buffer. [out] p = Pointer to parameter buffer [in] timeout = Timeout in us, standard is EC_TIMEOUTRXM 
- Returns:
- Workcounter from last slave response
Definition at line 200 of file ethercatsoe.c.
Generated on Tue Jul 12 2022 18:21:14 by
 1.7.2
 1.7.2