]> git.feebdaed.xyz Git - 0xmirror/SOEM.git/commitdiff
Cleanup doxygen comments
authorHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Thu, 10 Jul 2025 11:18:41 +0000 (13:18 +0200)
committerHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Fri, 11 Jul 2025 09:26:19 +0000 (11:26 +0200)
Change-Id: I111fe88e4ea8141b5eecb28defd5173471181da1

src/ec_base.c
src/ec_coe.c
src/ec_config.c
src/ec_dc.c
src/ec_eoe.c
src/ec_foe.c
src/ec_main.c
src/ec_print.c
src/ec_soe.c

index d56b142343dab256735fc16627e5129070e23e8e..d2edc0d0af05e7cabcbda91fa9845f0b3ba12e21 100644 (file)
 
 /** Write data to EtherCAT datagram.
  *
- * @param[out] datagramdata   data part of datagram
- * @param[in]  com            command
- * @param[in]  length         length of databuffer
- * @param[in]  data           databuffer to be copied into datagram
+ * @param[out] datagramdata   data part of datagram
+ * @param[in]  com            command
+ * @param[in]  length         length of databuffer
+ * @param[in]  data           databuffer to be copied into datagram
  */
 static void ecx_writedatagramdata(void *datagramdata, ec_cmdtype com, uint16 length, const void *data)
 {
@@ -53,14 +53,14 @@ static void ecx_writedatagramdata(void *datagramdata, ec_cmdtype com, uint16 len
 
 /** Generate and set EtherCAT datagram in a standard ethernet frame.
  *
- * @param[in] port        = port context struct
- * @param[out] frame       framebuffer
- * @param[in]  com         command
- * @param[in]  idx         index used for TX and RX buffers
- * @param[in]  ADP         Address Position
- * @param[in]  ADO         Address Offset
- * @param[in]  length      length of datagram excluding EtherCAT header
- * @param[in]  data        databuffer to be copied in datagram
+ * @param[in]  port        port context struct
+ * @param[out] frame       framebuffer
+ * @param[in]  com         command
+ * @param[in]  idx         index used for TX and RX buffers
+ * @param[in]  ADP         Address Position
+ * @param[in]  ADO         Address Offset
+ * @param[in]  length      length of datagram excluding EtherCAT header
+ * @param[in]  data        databuffer to be copied in datagram
  * @return always 0
  */
 int ecx_setupdatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, uint16 ADP, uint16 ADO, uint16 length, void *data)
@@ -90,15 +90,15 @@ int ecx_setupdatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, uint16
 
 /** Add EtherCAT datagram to a standard ethernet frame with existing datagram(s).
  *
- * @param[in] port        = port context struct
- * @param[out] frame      framebuffer
- * @param[in]  com        command
- * @param[in]  idx        index used for TX and RX buffers
- * @param[in]  more       TRUE if still more datagrams to follow
- * @param[in]  ADP        Address Position
- * @param[in]  ADO        Address Offset
- * @param[in]  length     length of datagram excluding EtherCAT header
- * @param[in]  data       databuffer to be copied in datagram
+ * @param[in]  port        port context struct
+ * @param[out] frame      framebuffer
+ * @param[in]  com        command
+ * @param[in]  idx        index used for TX and RX buffers
+ * @param[in]  more       TRUE if still more datagrams to follow
+ * @param[in]  ADP        Address Position
+ * @param[in]  ADO        Address Offset
+ * @param[in]  length     length of datagram excluding EtherCAT header
+ * @param[in]  data       databuffer to be copied in datagram
  * @return Offset to data in rx frame, useful to retrieve data after RX.
  */
 uint16 ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data)
@@ -145,12 +145,12 @@ uint16 ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boole
 
 /** BRW "broadcast write" primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, normally 0
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] length      length of databuffer
- * @param[in] data        databuffer to be written to slaves
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, normally 0
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] length      length of databuffer
+ * @param[in] data        databuffer to be written to slaves
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -172,12 +172,12 @@ int ecx_BWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** BRD "broadcast read" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  ADP        Address Position, normally 0
- * @param[in]  ADO        Address Offset, slave memory address
- * @param[in]  length     length of databuffer
- * @param[out] data       databuffer to put slave data in
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  port       port context struct
+ * @param[in]  ADP        Address Position, normally 0
+ * @param[in]  ADO        Address Offset, slave memory address
+ * @param[in]  length     length of databuffer
+ * @param[out] data       databuffer to put slave data in
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_BRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -204,12 +204,12 @@ int ecx_BRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** APRD "auto increment address read" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  ADP        Address Position, each slave ++, slave that has 0 executes
- * @param[in]  ADO        Address Offset, slave memory address
- * @param[in]  length     length of databuffer
- * @param[out] data       databuffer to put slave data in
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  port       port context struct
+ * @param[in]  ADP        Address Position, each slave ++, slave that has 0 executes
+ * @param[in]  ADO        Address Offset, slave memory address
+ * @param[in]  length     length of databuffer
+ * @param[out] data       databuffer to put slave data in
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_APRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -231,13 +231,13 @@ int ecx_APRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** APRMW "auto increment address read, multiple write" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  ADP        Address Position, each slave ++, slave that has 0 reads,
+ * @param[in]  port       port context struct
+ * @param[in]  ADP        Address Position, each slave ++, slave that has 0 reads,
  *                          following slaves write.
- * @param[in]  ADO        Address Offset, slave memory address
- * @param[in]  length     length of databuffer
- * @param[out] data       databuffer to put slave data in
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  ADO        Address Offset, slave memory address
+ * @param[in]  length     length of databuffer
+ * @param[out] data       databuffer to put slave data in
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_ARMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -259,13 +259,13 @@ int ecx_ARMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** FPRMW "configured address read, multiple write" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  ADP        Address Position, slave that has address reads,
+ * @param[in]  port       port context struct
+ * @param[in]  ADP        Address Position, slave that has address reads,
  *                          following slaves write.
- * @param[in]  ADO        Address Offset, slave memory address
- * @param[in]  length     length of databuffer
- * @param[out] data       databuffer to put slave data in
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  ADO        Address Offset, slave memory address
+ * @param[in]  length     length of databuffer
+ * @param[out] data       databuffer to put slave data in
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_FRMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -287,10 +287,10 @@ int ecx_FRMW(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** APRDw "auto increment address read" word return primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, each slave ++, slave that has 0 reads.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, each slave ++, slave that has 0 reads.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return word data from slave
  */
 uint16 ecx_APRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
@@ -305,12 +305,12 @@ uint16 ecx_APRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
 
 /** FPRD "configured address read" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  ADP        Address Position, slave that has address reads.
- * @param[in]  ADO        Address Offset, slave memory address
- * @param[in]  length     length of databuffer
- * @param[out] data       databuffer to put slave data in
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  port       port context struct
+ * @param[in]  ADP        Address Position, slave that has address reads.
+ * @param[in]  ADO        Address Offset, slave memory address
+ * @param[in]  length     length of databuffer
+ * @param[out] data       databuffer to put slave data in
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -332,10 +332,10 @@ int ecx_FPRD(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** FPRDw "configured address read" word return primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, slave that has address reads.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, slave that has address reads.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return word data from slave
  */
 uint16 ecx_FPRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
@@ -349,12 +349,12 @@ uint16 ecx_FPRDw(ecx_portt *port, uint16 ADP, uint16 ADO, int timeout)
 
 /** APWR "auto increment address write" primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, each slave ++, slave that has 0 writes.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] length      length of databuffer
- * @param[in] data        databuffer to write to slave.
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, each slave ++, slave that has 0 writes.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] length      length of databuffer
+ * @param[in] data        databuffer to write to slave.
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_APWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -372,11 +372,11 @@ int ecx_APWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** APWRw "auto increment address write" word primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, each slave ++, slave that has 0 writes.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] data        word data to write to slave.
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, each slave ++, slave that has 0 writes.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] data        word data to write to slave.
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_APWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
@@ -386,12 +386,12 @@ int ecx_APWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
 
 /** FPWR "configured address write" primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, slave that has address writes.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] length      length of databuffer
- * @param[in] data        databuffer to write to slave.
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, slave that has address writes.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] length      length of databuffer
+ * @param[in] data        databuffer to write to slave.
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data, int timeout)
@@ -409,11 +409,11 @@ int ecx_FPWR(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 length, void *data,
 
 /** FPWR "configured address write" primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] ADP         Address Position, slave that has address writes.
- * @param[in] ADO         Address Offset, slave memory address
- * @param[in] data        word to write to slave.
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] ADP         Address Position, slave that has address writes.
+ * @param[in] ADO         Address Offset, slave memory address
+ * @param[in] data        word to write to slave.
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_FPWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
@@ -423,11 +423,11 @@ int ecx_FPWRw(ecx_portt *port, uint16 ADP, uint16 ADO, uint16 data, int timeout)
 
 /** LRW "logical memory read / write" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]     LogAdr  Logical memory address
- * @param[in]     length  length of databuffer
- * @param[in,out] data    databuffer to write to and read from slave.
- * @param[in]     timeout timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]     port    port context struct
+ * @param[in]     LogAdr  Logical memory address
+ * @param[in]     length  length of databuffer
+ * @param[in,out] data    databuffer to write to and read from slave.
+ * @param[in]     timeout timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_LRW(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
@@ -449,11 +449,11 @@ int ecx_LRW(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeo
 
 /** LRD "logical memory read" primitive. Blocking.
  *
- * @param[in] port        = port context struct
- * @param[in]  LogAdr     Logical memory address
- * @param[in]  length     length of bytes to read from slave.
- * @param[out] data       databuffer to read from slave.
- * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]  port       port context struct
+ * @param[in]  LogAdr     Logical memory address
+ * @param[in]  length     length of bytes to read from slave.
+ * @param[out] data       databuffer to read from slave.
+ * @param[in]  timeout    timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_LRD(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
@@ -475,11 +475,11 @@ int ecx_LRD(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeo
 
 /** LWR "logical memory write" primitive. Blocking.
  *
- * @param[in] port        port context struct
- * @param[in] LogAdr      Logical memory address
- * @param[in] length      length of databuffer
- * @param[in] data        databuffer to write to slave.
- * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
+ * @param[in] port        port context struct
+ * @param[in] LogAdr      Logical memory address
+ * @param[in] length      length of databuffer
+ * @param[in] data        databuffer to write to slave.
+ * @param[in] timeout     timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_LWR(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeout)
@@ -498,13 +498,13 @@ int ecx_LWR(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, int timeo
 /** LRW "logical memory read / write" primitive plus Clock Distribution. Blocking.
  * Frame consists of two datagrams, one LRW and one FPRMW.
  *
- * @param[in] port        = port context struct
- * @param[in]     LogAdr  Logical memory address
- * @param[in]     length  length of databuffer
- * @param[in,out] data    databuffer to write to and read from slave.
- * @param[in]     DCrs    Distributed Clock reference slave address.
- * @param[out]    DCtime  DC time read from reference slave.
- * @param[in]     timeout timeout in us, standard is EC_TIMEOUTRET
+ * @param[in]     port    port context struct
+ * @param[in]     LogAdr  Logical memory address
+ * @param[in]     length  length of databuffer
+ * @param[in,out] data    databuffer to write to and read from slave.
+ * @param[in]     DCrs    Distributed Clock reference slave address.
+ * @param[out]    DCtime  DC time read from reference slave.
+ * @param[in]     timeout timeout in us, standard is EC_TIMEOUTRET
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_LRWDC(ecx_portt *port, uint32 LogAdr, uint16 length, void *data, uint16 DCrs, int64 *DCtime, int timeout)
index cb491802e5b5bb62d70dd78f6729f09a0c819243..12682eab1effda1a7e5cf280c48ac01dc76798eb 100644 (file)
@@ -54,11 +54,11 @@ OSAL_PACKED_END
 
 /** Report SDO error.
  *
- * @param[in]  context    context struct
- * @param[in]  Slave      Slave number
- * @param[in]  Index      Index that generated error
- * @param[in]  SubIdx     Subindex that generated error
- * @param[in]  AbortCode  Abortcode, see EtherCAT documentation for list
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  Index      Index that generated error
+ * @param[in]  SubIdx     Subindex that generated error
+ * @param[in]  AbortCode  Abortcode, see EtherCAT documentation for list
  */
 void ecx_SDOerror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubIdx, int32 AbortCode)
 {
@@ -77,11 +77,11 @@ void ecx_SDOerror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubId
 
 /** Report SDO info error
  *
- * @param[in]  context    context struct
- * @param[in]  Slave      Slave number
- * @param[in]  Index      Index that generated error
- * @param[in]  SubIdx     Subindex that generated error
- * @param[in]  AbortCode  Abortcode, see EtherCAT documentation for list
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  Index      Index that generated error
+ * @param[in]  SubIdx     Subindex that generated error
+ * @param[in]  AbortCode  Abortcode, see EtherCAT documentation for list
  */
 static void ecx_SDOinfoerror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubIdx, int32 AbortCode)
 {
@@ -104,14 +104,14 @@ static void ecx_SDOinfoerror(ecx_contextt *context, uint16 Slave, uint16 Index,
  * 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.
  *
- * @param[in]  context    context struct
- * @param[in]  slave      Slave number
- * @param[in]  index      Index to read
- * @param[in]  subindex   Subindex to read, must be 0 or 1 if CA is used.
- * @param[in]  CA         FALSE = single subindex. TRUE = Complete Access, all subindexes read.
- * @param[in,out] psize   Size in bytes of parameter buffer, returns bytes read from SDO.
- * @param[out] p          Pointer to parameter buffer
- * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number
+ * @param[in]  index      Index to read
+ * @param[in]  subindex   Subindex to read, must be 0 or 1 if CA is used.
+ * @param[in]  CA         FALSE = single subindex. TRUE = Complete Access, all subindexes read.
+ * @param[in,out] psize   Size in bytes of parameter buffer, returns bytes read from SDO.
+ * @param[out] p          Pointer to parameter buffer
+ * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_SDOread(ecx_contextt *context, uint16 slave, uint16 index, uint8 subindex,
@@ -330,14 +330,14 @@ int ecx_SDOread(ecx_contextt *context, uint16 slave, uint16 index, uint8 subinde
  * the mailbox size then the download is segmented. The function will split the
  * parameter data in segments and send them to the slave one by one.
  *
- * @param[in]  context    context struct
- * @param[in]  Slave      Slave number
- * @param[in]  Index      Index to write
- * @param[in]  SubIndex   Subindex to write, must be 0 or 1 if CA is used.
- * @param[in]  CA         FALSE = single subindex. TRUE = Complete Access, all subindexes written.
- * @param[in]  psize      Size in bytes of parameter buffer.
- * @param[out] p          Pointer to parameter buffer
- * @param[in]  Timeout    Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  Index      Index to write
+ * @param[in]  SubIndex   Subindex to write, must be 0 or 1 if CA is used.
+ * @param[in]  CA         FALSE = single subindex. TRUE = Complete Access, all subindexes written.
+ * @param[in]  psize      Size in bytes of parameter buffer.
+ * @param[out] p          Pointer to parameter buffer
+ * @param[in]  Timeout    Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_SDOwrite(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubIndex,
@@ -573,11 +573,11 @@ int ecx_SDOwrite(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubInd
  *
  * A RxPDO download request is issued.
  *
- * @param[in]  context       context struct
- * @param[in]  Slave         Slave number
- * @param[in]  RxPDOnumber   Related RxPDO number
- * @param[in]  psize         Size in bytes of PDO buffer.
- * @param[out] p             Pointer to PDO buffer
+ * @param[in]  context       context struct
+ * @param[in]  Slave         Slave number
+ * @param[in]  RxPDOnumber   Related RxPDO number
+ * @param[in]  psize         Size in bytes of PDO buffer.
+ * @param[out] p             Pointer to PDO buffer
  * @return Workcounter from last slave response
  */
 int ecx_RxPDO(ecx_contextt *context, uint16 Slave, uint16 RxPDOnumber, int psize, const void *p)
@@ -621,12 +621,12 @@ int ecx_RxPDO(ecx_contextt *context, uint16 Slave, uint16 RxPDOnumber, int psize
  *
  * A TxPDO download request is issued.
  *
- * @param[in]  context       context struct
- * @param[in]  slave         Slave number
- * @param[in]  TxPDOnumber   Related TxPDO number
- * @param[in,out] psize      Size in bytes of PDO buffer, returns bytes read from PDO.
- * @param[out] p             Pointer to PDO buffer
- * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context       context struct
+ * @param[in]  slave         Slave number
+ * @param[in]  TxPDOnumber   Related TxPDO number
+ * @param[in,out] psize      Size in bytes of PDO buffer, returns bytes read from PDO.
+ * @param[out] p             Pointer to PDO buffer
+ * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_TxPDO(ecx_contextt *context, uint16 slave, uint16 TxPDOnumber, int *psize, void *p, int timeout)
@@ -705,9 +705,9 @@ int ecx_TxPDO(ecx_contextt *context, uint16 slave, uint16 TxPDOnumber, int *psiz
 }
 
 /** Read PDO assign structure
- * @param[in]  context       context struct
- * @param[in]  Slave         Slave number
- * @param[in]  PDOassign     PDO assign object
+ * @param[in]  context       context struct
+ * @param[in]  Slave         Slave number
+ * @param[in]  PDOassign     PDO assign object
  * @return total bitlength of PDO assign
  */
 uint32 ecx_readPDOassign(ecx_contextt *context, uint16 Slave, uint16 PDOassign)
@@ -775,10 +775,10 @@ uint32 ecx_readPDOassign(ecx_contextt *context, uint16 Slave, uint16 PDOassign)
 }
 
 /** Read PDO assign structure in Complete Access mode
- * @param[in]  context       context struct
- * @param[in]  Slave         Slave number
- * @param[in]  Thread_n      Calling thread index
- * @param[in]  PDOassign     PDO assign object
+ * @param[in]  context       context struct
+ * @param[in]  Slave         Slave number
+ * @param[in]  Thread_n      Calling thread index
+ * @param[in]  PDOassign     PDO assign object
  * @return total bitlength of PDO assign
  */
 uint32 ecx_readPDOassignCA(ecx_contextt *context, uint16 Slave, int Thread_n,
@@ -847,10 +847,10 @@ uint32 ecx_readPDOassignCA(ecx_contextt *context, uint16 Slave, int Thread_n,
  * 1A00:00 is number of object defined for this PDO\n
  * 1A00:01 object mapping #1, f.e. 60100710 (SDO 6010 SI 07 bitlength 0x10)
  *
- * @param[in]  context context struct
- * @param[in]  Slave   Slave number
- * @param[out] Osize   Size in bits of output mapping (rxPDO) found
- * @param[out] Isize   Size in bits of input mapping (txPDO) found
+ * @param[in]  context context struct
+ * @param[in]  Slave   Slave number
+ * @param[out] Osize   Size in bits of output mapping (rxPDO) found
+ * @param[out] Isize   Size in bits of input mapping (txPDO) found
  * @return >0 if mapping successful.
  */
 int ecx_readPDOmap(ecx_contextt *context, uint16 Slave, uint32 *Osize, uint32 *Isize)
@@ -948,11 +948,11 @@ int ecx_readPDOmap(ecx_contextt *context, uint16 Slave, uint32 *Osize, uint32 *I
  * tries to read them and collect a full input and output mapping size
  * of designated slave. Slave has to support CA, otherwise use ec_readPDOmap().
  *
- * @param[in]  context  context struct
- * @param[in]  Slave    Slave number
- * @param[in]  Thread_n Calling thread index
- * @param[out] Osize    Size in bits of output mapping (rxPDO) found
- * @param[out] Isize    Size in bits of input mapping (txPDO) found
+ * @param[in]  context  context struct
+ * @param[in]  Slave    Slave number
+ * @param[in]  Thread_n Calling thread index
+ * @param[out] Osize    Size in bits of output mapping (rxPDO) found
+ * @param[out] Isize    Size in bits of input mapping (txPDO) found
  * @return >0 if mapping successful.
  */
 int ecx_readPDOmapCA(ecx_contextt *context, uint16 Slave, int Thread_n, uint32 *Osize, uint32 *Isize)
@@ -1038,9 +1038,9 @@ int ecx_readPDOmapCA(ecx_contextt *context, uint16 Slave, int Thread_n, uint32 *
 
 /** CoE read Object Description List.
  *
- * @param[in]  context  context struct
- * @param[in]  Slave    Slave number.
- * @param[out] pODlist  resulting Object Description list.
+ * @param[in]  context  context struct
+ * @param[in]  Slave    Slave number.
+ * @param[out] pODlist  resulting Object Description list.
  * @return Workcounter of slave response.
  */
 int ecx_readODlist(ecx_contextt *context, uint16 Slave, ec_ODlistt *pODlist)
@@ -1164,9 +1164,9 @@ int ecx_readODlist(ecx_contextt *context, uint16 Slave, ec_ODlistt *pODlist)
 
 /** CoE read Object Description. Adds textual description to object indexes.
  *
- * @param[in]  context       context struct
- * @param[in] Item           Item number in ODlist.
- * @param[in,out] pODlist    referencing Object Description list.
+ * @param[in]  context       context struct
+ * @param[in] Item           Item number in ODlist.
+ * @param[in,out] pODlist    referencing Object Description list.
  * @return Workcounter of slave response.
  */
 int ecx_readODdescription(ecx_contextt *context, uint16 Item, ec_ODlistt *pODlist)
@@ -1255,11 +1255,11 @@ int ecx_readODdescription(ecx_contextt *context, uint16 Item, ec_ODlistt *pODlis
 /** CoE read SDO service object entry, single subindex.
  * Used in ec_readOE().
  *
- * @param[in]  context       context struct
- * @param[in] Item           Item in ODlist.
- * @param[in] SubI           Subindex of item in ODlist.
- * @param[in] pODlist        Object description list for reference.
- * @param[out] pOElist       resulting object entry structure.
+ * @param[in]  context       context struct
+ * @param[in] Item           Item in ODlist.
+ * @param[in] SubI           Subindex of item in ODlist.
+ * @param[in] pODlist        Object description list for reference.
+ * @param[out] pOElist       resulting object entry structure.
  * @return Workcounter of slave response.
  */
 int ecx_readOEsingle(ecx_contextt *context, uint16 Item, uint8 SubI, ec_ODlistt *pODlist, ec_OElistt *pOElist)
@@ -1354,10 +1354,10 @@ int ecx_readOEsingle(ecx_contextt *context, uint16 Item, uint8 SubI, ec_ODlistt
 
 /** CoE read SDO service object entry.
  *
- * @param[in] context        context struct
- * @param[in] Item           Item in ODlist.
- * @param[in] pODlist        Object description list for reference.
- * @param[out] pOElist       resulting object entry structure.
+ * @param[in] context        context struct
+ * @param[in] Item           Item in ODlist.
+ * @param[in] pODlist        Object description list for reference.
+ * @param[out] pOElist       resulting object entry structure.
  * @return Workcounter of slave response.
  */
 int ecx_readOE(ecx_contextt *context, uint16 Item, ec_ODlistt *pODlist, ec_OElistt *pOElist)
index d564309331b2f9cffce314423e3c6827b0219124..5c38f06f41f0b432c7f84c5f483a88bd1aa5987c 100644 (file)
@@ -166,7 +166,7 @@ static int ecx_lookup_prev_sii(ecx_contextt *context, uint16 slave)
 
 /** Enumerate and init all slaves.
  *
- * @param[in] context      context struct
+ * @param[in] context      context struct
  * @return Workcounter of slave discover datagram = number of slaves found
  */
 int ecx_config_init(ecx_contextt *context)
@@ -1298,9 +1298,9 @@ static int ecx_main_config_map_group(ecx_contextt *context, void *pIOmap, uint8
 /** Map all PDOs in one group of slaves to IOmap with Outputs/Inputs
  * overlapping. NOTE: Must use this for TI ESC when using LRW.
  *
- * @param[in]  context    context struct
- * @param[out] pIOmap     pointer to IOmap
- * @param[in]  group      = group to map, 0 all groups
+ * @param[in]  context    context struct
+ * @param[out] pIOmap     pointer to IOmap
+ * @param[in]  group      = group to map, 0 all groups
  * @return IOmap size
  */
 static int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uint8 group)
@@ -1514,9 +1514,9 @@ static int ecx_config_overlap_map_group(ecx_contextt *context, void *pIOmap, uin
  * frame. Use this mode for TI ESC when using LRW. Packed mode is not
  * possible when overlapped mode is enabled.
  *
- * @param[in]  context    context struct
- * @param[out] pIOmap     pointer to IOmap
- * @param[in]  group      group to map, 0 = all groups
+ * @param[in]  context    context struct
+ * @param[out] pIOmap     pointer to IOmap
+ * @param[in]  group      group to map, 0 = all groups
  * @return IOmap size
  */
 int ecx_config_map_group(ecx_contextt *context, void *pIOmap, uint8 group)
@@ -1530,9 +1530,9 @@ int ecx_config_map_group(ecx_contextt *context, void *pIOmap, uint8 group)
 
 /** Recover slave.
  *
- * @param[in] context context struct
- * @param[in] slave   slave to recover
- * @param[in] timeout local timeout f.e. EC_TIMEOUTRET3
+ * @param[in] context context struct
+ * @param[in] slave   slave to recover
+ * @param[in] timeout local timeout f.e. EC_TIMEOUTRET3
  * @return >0 if successful
  */
 int ecx_recover_slave(ecx_contextt *context, uint16 slave, int timeout)
@@ -1593,9 +1593,9 @@ int ecx_recover_slave(ecx_contextt *context, uint16 slave, int timeout)
 
 /** Reconfigure slave.
  *
- * @param[in] context context struct
- * @param[in] slave   slave to reconfigure
- * @param[in] timeout local timeout f.e. EC_TIMEOUTRET3
+ * @param[in] context context struct
+ * @param[in] slave   slave to reconfigure
+ * @param[in] timeout local timeout f.e. EC_TIMEOUTRET3
  * @return Slave state
  */
 int ecx_reconfig_slave(ecx_contextt *context, uint16 slave, int timeout)
index 5e98f21eccdbaa5517997eba274705bc4ca9fb38..c8024756888f100a09429902327596eab236b95d 100644 (file)
@@ -24,7 +24,7 @@
 /**
  * Set DC of slave to fire sync0 at CyclTime interval with CyclShift offset.
  *
- * @param[in]  context        = context struct
+ * @param[in]  context          context struct
  * @param [in] slave            Slave number.
  * @param [in] act              TRUE = active, FALSE = deactivated
  * @param [in] CyclTime         Cycltime in ns.
@@ -80,7 +80,7 @@ void ecx_dcsync0(ecx_contextt *context, uint16 slave, boolean act, uint32 CyclTi
 /**
  * Set DC of slave to fire sync0 and sync1 at CyclTime interval with CyclShift offset.
  *
- * @param[in]  context        = context struct
+ * @param[in]  context          context struct
  * @param [in] slave            Slave number.
  * @param [in] act              TRUE = active, FALSE = deactivated
  * @param [in] CyclTime0        Cycltime SYNC0 in ns.
@@ -244,7 +244,7 @@ static uint8 ecx_parentport(ecx_contextt *context, uint16 parent)
 /**
  * Locate DC slaves, measure propagation delays.
  *
- * @param[in]  context        context struct
+ * @param[in]  context        context struct
  * @return boolean if slaves are found with DC
  */
 boolean ecx_configdc(ecx_contextt *context)
index 11e33a02dd140b914159df0c8677c86ae4af8a3f..b698c08483462d8c50a8769ebe4278f5dd16a419 100644 (file)
@@ -20,8 +20,8 @@
 #include "oshw.h"
 
 /** EoE utility function to convert uint32 to eoe ip bytes.
- * @param[in] ip       ip in uint32
- * @param[out] byte_ip eoe ip 4th octet, 3ed octet, 2nd octet, 1st octet
+ * @param[in] ip       ip in uint32
+ * @param[out] byte_ip eoe ip 4th octet, 3ed octet, 2nd octet, 1st octet
  */
 static void EOE_ip_uint32_to_byte(eoe_ip4_addr_t *ip, uint8_t *byte_ip)
 {
@@ -32,8 +32,8 @@ static void EOE_ip_uint32_to_byte(eoe_ip4_addr_t *ip, uint8_t *byte_ip)
 }
 
 /** EoE utility function to convert eoe ip bytes to uint32.
- * @param[in] byte_ip eoe ip 4th octet, 3ed octet, 2nd octet, 1st octet
- * @param[out] ip     ip in uint32
+ * @param[in] byte_ip eoe ip 4th octet, 3ed octet, 2nd octet, 1st octet
+ * @param[out] ip     ip in uint32
  */
 static void EOE_ip_byte_to_uint32(uint8_t *byte_ip, eoe_ip4_addr_t *ip)
 {
@@ -46,8 +46,8 @@ static void EOE_ip_byte_to_uint32(uint8_t *byte_ip, eoe_ip4_addr_t *ip)
 
 /** EoE fragment data handler hook. Should not block.
  *
- * @param[in]  context context struct
- * @param[in]  hook    Pointer to hook function.
+ * @param[in]  context context struct
+ * @param[in]  hook    Pointer to hook function.
  * @return 1
  */
 int ecx_EOEdefinehook(ecx_contextt *context, void *hook)
@@ -58,11 +58,11 @@ int ecx_EOEdefinehook(ecx_contextt *context, void *hook)
 
 /** EoE EOE set IP, blocking. Waits for response from the slave.
  *
- * @param[in]  context    Context struct
- * @param[in]  slave      Slave number
- * @param[in]  port       Port number on slave if applicable
- * @param[in]  ipparam    IP parameter data to be sent
- * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    Context struct
+ * @param[in]  slave      Slave number
+ * @param[in]  port       Port number on slave if applicable
+ * @param[in]  ipparam    IP parameter data to be sent
+ * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response or returned result code
  */
 int ecx_EOEsetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *ipparam, int timeout)
@@ -177,11 +177,11 @@ int ecx_EOEsetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *i
 
 /** EoE EOE get IP, blocking. Waits for response from the slave.
  *
- * @param[in]  context    Context struct
- * @param[in]  slave      Slave number
- * @param[in]  port       Port number on slave if applicable
- * @param[out] ipparam    IP parameter data retrieved from slave
- * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    Context struct
+ * @param[in]  slave      Slave number
+ * @param[in]  port       Port number on slave if applicable
+ * @param[out] ipparam    IP parameter data retrieved from slave
+ * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response or returned result code
  */
 int ecx_EOEgetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *ipparam, int timeout)
@@ -321,12 +321,12 @@ int ecx_EOEgetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *i
  * several fragments. The function will split the buf data in fragments and
  * send them to the slave one by one.
  *
- * @param[in]  context    context struct
- * @param[in]  slave      Slave number
- * @param[in]  port       Port number on slave if applicable
- * @param[in]  psize      Size in bytes of parameter buffer.
- * @param[in]  p          Pointer to parameter buffer
- * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number
+ * @param[in]  port       Port number on slave if applicable
+ * @param[in]  psize      Size in bytes of parameter buffer.
+ * @param[in]  p          Pointer to parameter buffer
+ * @param[in]  timeout    Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave transmission
  */
 int ecx_EOEsend(ecx_contextt *context, uint16 slave, uint8 port, int psize, void *p, int timeout)
@@ -426,12 +426,12 @@ int ecx_EOEsend(ecx_contextt *context, uint16 slave, uint8 port, int psize, void
  * by several fragments. The function will assamble the fragments into
  * a complete Ethernet buffer.
  *
- * @param[in]     context context struct
- * @param[in]     slave   Slave number
- * @param[in]     port    Port number on slave if applicable
- * @param[in,out] psize   Size in bytes of parameter buffer.
- * @param[in]     p       Pointer to parameter buffer
- * @param[in]     timeout Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]     context context struct
+ * @param[in]     slave   Slave number
+ * @param[in]     port    Port number on slave if applicable
+ * @param[in,out] psize   Size in bytes of parameter buffer.
+ * @param[in]     p       Pointer to parameter buffer
+ * @param[in]     timeout Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response or error code
  */
 int ecx_EOErecv(ecx_contextt *context, uint16 slave, uint8 port, int *psize, void *p, int timeout)
@@ -547,13 +547,13 @@ int ecx_EOErecv(ecx_contextt *context, uint16 slave, uint8 port, int *psize, voi
  * Will take the data in incoming mailbox buffer and copy to destination
  * Ethernet frame buffer at given offset and update current fragment variables
  *
- * @param[in] MbxIn             Received mailbox containing fragment data
- * @param[in,out] rxfragmentno  Fragment number
- * @param[in,out] rxframesize   Frame size
- * @param[in,out] rxframeoffset Frame offset
- * @param[in,out] rxframeno     Frame number
- * @param[in,out] psize         Size in bytes of frame buffer.
- * @param[out] p                Pointer to frame buffer
+ * @param[in] MbxIn             Received mailbox containing fragment data
+ * @param[in,out] rxfragmentno  Fragment number
+ * @param[in,out] rxframesize   Frame size
+ * @param[in,out] rxframeoffset Frame offset
+ * @param[in,out] rxframeno     Frame number
+ * @param[in,out] psize         Size in bytes of frame buffer.
+ * @param[out] p                Pointer to frame buffer
  * @return 0= if fragment OK, >0 if last fragment, <0 on error
  */
 int ecx_EOEreadfragment(
index 2c3c7d92facec5c1a552efc0f0913cb464bea83c..e85a6b67514089172a97961d413bc28134da53f0 100644 (file)
@@ -50,8 +50,8 @@ OSAL_PACKED_END
 
 /** FoE progress hook.
  *
- * @param[in]  context        = context struct
- * @param[in]     hook       = Pointer to hook function.
+ * @param[in]  context    context struct
+ * @param[in]  hook       Pointer to hook function.
  * @return 1
  */
 int ecx_FOEdefinehook(ecx_contextt *context, void *hook)
@@ -62,13 +62,13 @@ int ecx_FOEdefinehook(ecx_contextt *context, void *hook)
 
 /** FoE read, blocking.
  *
- * @param[in]  context        = context struct
- * @param[in]     slave      Slave number.
- * @param[in]     filename   Filename of file to read.
- * @param[in]     password   password.
- * @param[in,out] psize      Size in bytes of file buffer, returns bytes read from file.
- * @param[out]    p          Pointer to file buffer
- * @param[in]     timeout    Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
+ * @param[in]     context    context struct
+ * @param[in]     slave      Slave number.
+ * @param[in]     filename   Filename of file to read.
+ * @param[in]     password   password.
+ * @param[in,out] psize      Size in bytes of file buffer, returns bytes read from file.
+ * @param[out]    p          Pointer to file buffer
+ * @param[in]     timeout    Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_FOEread(ecx_contextt *context, uint16 slave, char *filename, uint32 password, int *psize, void *p, int timeout)
@@ -85,7 +85,7 @@ int ecx_FOEread(ecx_contextt *context, uint16 slave, char *filename, uint32 pass
    buffersize = *psize;
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timeout set to 0 */
+   /* Empty slave out mailbox if something is in. Timout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
@@ -202,13 +202,13 @@ int ecx_FOEread(ecx_contextt *context, uint16 slave, char *filename, uint32 pass
 
 /** FoE write, blocking.
  *
- * @param[in]  context        = context struct
- * @param[in]  slave      Slave number.
- * @param[in]  filename   Filename of file to write.
- * @param[in]  password   password.
- * @param[in]  psize      Size in bytes of file buffer.
- * @param[out] p          Pointer to file buffer
- * @param[in]  timeout    Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number.
+ * @param[in]  filename   Filename of file to write.
+ * @param[in]  password   password.
+ * @param[in]  psize      Size in bytes of file buffer.
+ * @param[out] p          Pointer to file buffer
+ * @param[in]  timeout    Timeout per mailbox cycle in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_FOEwrite(ecx_contextt *context, uint16 slave, char *filename, uint32 password, int psize, void *p, int timeout)
@@ -225,7 +225,7 @@ int ecx_FOEwrite(ecx_contextt *context, uint16 slave, char *filename, uint32 pas
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timeout set to 0 */
+   /* Empty slave out mailbox if something is in. Timout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
index b287417824df33e85504657dd88bfa549b3967ea..5df3100759790131b468a7444094a6be07990f95 100644 (file)
@@ -69,7 +69,7 @@ ec_adaptert *ec_find_adapters(void)
 
 /** Free dynamically allocated list over available network adapters.
  *
- * @param[in] adapter Struct holding adapter name, description and pointer to next.
+ * @param[in] adapter Struct holding adapter name, description and pointer to next.
  */
 void ec_free_adapters(ec_adaptert *adapter)
 {
@@ -78,7 +78,7 @@ void ec_free_adapters(ec_adaptert *adapter)
 
 /** Pushes an error on the error list.
  *
- * @param[in] context        context struct
+ * @param[in] context        context struct
  * @param[in] Ec pointer describing the error.
  */
 void ecx_pusherror(ecx_contextt *context, const ec_errort *Ec)
@@ -103,8 +103,8 @@ void ecx_pusherror(ecx_contextt *context, const ec_errort *Ec)
 
 /** Pops an error from the list.
  *
- * @param[in] context        context struct
- * @param[out] Ec Struct describing the error.
+ * @param[in] context        context struct
+ * @param[out] Ec Struct describing the error.
  * @return TRUE if an error was popped.
  */
 boolean ecx_poperror(ecx_contextt *context, ec_errort *Ec)
@@ -130,7 +130,7 @@ boolean ecx_poperror(ecx_contextt *context, ec_errort *Ec)
 
 /** Check if error list has entries.
  *
- * @param[in] context        context struct
+ * @param[in] context        context struct
  * @return TRUE if error list contains entries.
  */
 boolean ecx_iserror(ecx_contextt *context)
@@ -140,11 +140,11 @@ boolean ecx_iserror(ecx_contextt *context)
 
 /** Report packet error
  *
- * @param[in]  context        = context struct
- * @param[in]  Slave      Slave number
- * @param[in]  Index      Index that generated error
- * @param[in]  SubIdx     Subindex that generated error
- * @param[in]  ErrorCode  Error code
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  Index      Index that generated error
+ * @param[in]  SubIdx     Subindex that generated error
+ * @param[in]  ErrorCode  Error code
  */
 void ecx_packeterror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 SubIdx, uint16 ErrorCode)
 {
@@ -163,9 +163,9 @@ void ecx_packeterror(ecx_contextt *context, uint16 Slave, uint16 Index, uint8 Su
 
 /** Report Mailbox Error
  *
- * @param[in]  context        = context struct
- * @param[in]  Slave        Slave number
- * @param[in]  Detail       Following EtherCAT specification
+ * @param[in]  context      context struct
+ * @param[in]  Slave        Slave number
+ * @param[in]  Detail       Following EtherCAT specification
  */
 static void ecx_mbxerror(ecx_contextt *context, uint16 Slave, uint16 Detail)
 {
@@ -183,9 +183,9 @@ static void ecx_mbxerror(ecx_contextt *context, uint16 Slave, uint16 Detail)
 
 /** Report Mailbox Emergency Error
  *
- * @param[in]  context        = context struct
- * @param[in]  Slave      Slave number
- * @param[in]  ErrorCode  Following EtherCAT specification
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  ErrorCode  Following EtherCAT specification
  * @param[in]  ErrorReg
  * @param[in]  b1
  * @param[in]  w1
@@ -211,8 +211,8 @@ static void ecx_mbxemergencyerror(ecx_contextt *context, uint16 Slave, uint16 Er
 }
 
 /** Initialise lib in single NIC mode
- * @param[in]  context context struct
- * @param[in] ifname   Dev name, f.e. "eth0"
+ * @param[in]  context context struct
+ * @param[in] ifname   Dev name, f.e. "eth0"
  * @return >0 if OK
  */
 int ecx_init(ecx_contextt *context, const char *ifname)
@@ -222,10 +222,10 @@ int ecx_init(ecx_contextt *context, const char *ifname)
 }
 
 /** Initialise lib in redundant NIC mode
- * @param[in]  context  context struct
- * @param[in]  redport  pointer to redport, redundant port data
- * @param[in]  ifname   Primary Dev name, f.e. "eth0"
- * @param[in]  if2name  Secondary Dev name, f.e. "eth1"
+ * @param[in]  context  context struct
+ * @param[in]  redport  pointer to redport, redundant port data
+ * @param[in]  ifname   Primary Dev name, f.e. "eth0"
+ * @param[in]  if2name  Secondary Dev name, f.e. "eth1"
  * @return >0 if OK
  */
 int ecx_init_redundant(ecx_contextt *context, ecx_redportt *redport, const char *ifname, char *if2name)
@@ -248,7 +248,7 @@ int ecx_init_redundant(ecx_contextt *context, ecx_redportt *redport, const char
 }
 
 /** Close lib.
- * @param[in]  context        = context struct
+ * @param[in]  context   context struct
  */
 void ecx_close(ecx_contextt *context)
 {
@@ -258,7 +258,7 @@ void ecx_close(ecx_contextt *context)
 
 /**
  * Get a mailbox from the mailbox pool.
- * @param[in]  context   context struct
+ * @param[in]  context   context struct
  * @return Pointer to the mailbox if available, otherwise NULL.
  */
 ec_mbxbuft *ecx_getmbx(ecx_contextt *context)
@@ -279,8 +279,8 @@ ec_mbxbuft *ecx_getmbx(ecx_contextt *context)
 }
 
 /** Drop a mailbox back to the mailbox pool.
- * @param[in]  context   context struct
- * @param[in]  mbx       Pointer to mailbox to be dropped
+ * @param[in]  context   context struct
+ * @param[in]  mbx       Pointer to mailbox to be dropped
  * @return 1 on success, 0 if the mailbox is invalid.
  */
 int ecx_dropmbx(ecx_contextt *context, ec_mbxbuft *mbx)
@@ -306,7 +306,7 @@ int ecx_dropmbx(ecx_contextt *context, ec_mbxbuft *mbx)
  * Sets up the mailbox pool mutex and initializes the empty list with
  * all available mailboxes.
  *
- * @param[in] context        context struct
+ * @param[in] context        context struct
  * @return 0 on success.
  */
 int ecx_initmbxpool(ecx_contextt *context)
@@ -326,8 +326,8 @@ int ecx_initmbxpool(ecx_contextt *context)
 }
 
 /** Initialize mailbox queue.
- * @param[in]  context        context struct
- * @param[in]  group          group number
+ * @param[in]  context        context struct
+ * @param[in]  group          group number
  * @return 0 on success.
  */
 int ecx_initmbxqueue(ecx_contextt *context, uint8 group)
@@ -345,9 +345,9 @@ int ecx_initmbxqueue(ecx_contextt *context, uint8 group)
 }
 
 /** Add a mailbox to the queue for a specific slave.
- * @param[in]  context        context struct
- * @param[in]  slave          Slave number
- * @param[in]  mbx            Pointer to mailbox
+ * @param[in]  context        context struct
+ * @param[in]  slave          Slave number
+ * @param[in]  mbx            Pointer to mailbox
  * @return Ticket number of the added mailbox, or -1 on failure.
  */
 int ecx_mbxaddqueue(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx)
@@ -377,9 +377,9 @@ int ecx_mbxaddqueue(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx)
 }
 
 /** Mark a mailbox in the queue as done.
- * @param[in]  context        context struct
- * @param[in]  slave          Slave number
- * @param[in]  ticket         Ticket number of the mailbox
+ * @param[in]  context        context struct
+ * @param[in]  slave          Slave number
+ * @param[in]  ticket         Ticket number of the mailbox
  * @return 1 on success, 0 if the ticket is invalid or not done.
  */
 int ecx_mbxdonequeue(ecx_contextt *context, uint16 slave, int ticket)
@@ -402,9 +402,9 @@ int ecx_mbxdonequeue(ecx_contextt *context, uint16 slave, int ticket)
 }
 
 /** Expire a mailbox in the queue.
- * @param[in]  context        context struct
- * @param[in]  slave          Slave number
- * @param[in]  ticket         Ticket number of the mailbox
+ * @param[in]  context        context struct
+ * @param[in]  slave          Slave number
+ * @param[in]  ticket         Ticket number of the mailbox
  * @return 1 on success, 0 if the ticket is invalid or not expired.
  */
 int ecx_mbxexpirequeue(ecx_contextt *context, uint16 slave, int ticket)
@@ -427,9 +427,9 @@ int ecx_mbxexpirequeue(ecx_contextt *context, uint16 slave, int ticket)
 }
 
 /** Rotate a mailbox in the queue.
- * @param[in]  context        context struct
- * @param[in]  group          Group number
- * @param[in]  ticketloc      Ticket location in the queue
+ * @param[in]  context        context struct
+ * @param[in]  group          Group number
+ * @param[in]  ticketloc      Ticket location in the queue
  * @return 1 on success, 0 if rotation is not possible.
  */
 int ecx_mbxrotatequeue(ecx_contextt *context, uint8 group, int ticketloc)
@@ -469,8 +469,8 @@ int ecx_mbxrotatequeue(ecx_contextt *context, uint8 group, int ticketloc)
 }
 
 /** Set a slave's mailbox to be cyclic.
- * @param[in]  context        context struct
- * @param[in]  slave          Slave number
+ * @param[in]  context        context struct
+ * @param[in]  slave          Slave number
  * @return 1 if the mailbox was set to cyclic, 0 if it cannot be set.
  */
 int ecx_slavembxcyclic(ecx_contextt *context, uint16 slave)
@@ -485,9 +485,9 @@ int ecx_slavembxcyclic(ecx_contextt *context, uint16 slave)
 }
 
 /** Drop a mailbox from the queue.
- * @param[in]  context        context struct
- * @param[in]  group          Group number
- * @param[in]  ticketloc      Ticket location in the queue
+ * @param[in]  context        context struct
+ * @param[in]  group          Group number
+ * @param[in]  ticketloc      Ticket location in the queue
  * @return Pointer to the dropped mailbox
  */
 ec_mbxbuft *ecx_mbxdropqueue(ecx_contextt *context, uint8 group, int ticketloc)
@@ -510,9 +510,9 @@ ec_mbxbuft *ecx_mbxdropqueue(ecx_contextt *context, uint8 group, int ticketloc)
 /** Read one byte from slave EEPROM via cache.
  *  If the cache location is empty then a read request is made to the slave.
  *  Depending on the slave capabilities the request is 4 or 8 bytes.
- *  @param[in] context context struct
- *  @param[in] slave   slave number
- *  @param[in] address eeprom address in bytes (slave uses words)
+ *  @param[in] context context struct
+ *  @param[in] slave   slave number
+ *  @param[in] address eeprom address in bytes (slave uses words)
  *  @return requested byte, if not available then 0xff
  */
 uint8 ecx_siigetbyte(ecx_contextt *context, uint16 slave, uint16 address)
@@ -581,9 +581,9 @@ uint8 ecx_siigetbyte(ecx_contextt *context, uint16 slave, uint16 address)
 }
 
 /** Find SII section header in slave EEPROM.
- *  @param[in]  context        = context struct
- *  @param[in] slave   slave number
- *  @param[in] cat     section category
+ *  @param[in] context context struct
+ *  @param[in] slave   slave number
+ *  @param[in] cat     section category
  *  @return byte address of section at section length entry, if not available then 0
  */
 int16 ecx_siifind(ecx_contextt *context, uint16 slave, uint16 cat)
@@ -621,10 +621,10 @@ int16 ecx_siifind(ecx_contextt *context, uint16 slave, uint16 cat)
 }
 
 /** Get string from SII string section in slave EEPROM.
- *  @param[in]  context context struct
- *  @param[out] str     requested string, 0x00 if not found
- *  @param[in]  slave   slave number
- *  @param[in]  Sn      string number
+ *  @param[in]  context context struct
+ *  @param[out] str     requested string, 0x00 if not found
+ *  @param[in]  slave   slave number
+ *  @param[in]  Sn      string number
  */
 void ecx_siistring(ecx_contextt *context, char *str, uint16 slave, uint16 Sn)
 {
@@ -679,9 +679,9 @@ void ecx_siistring(ecx_contextt *context, char *str, uint16 slave, uint16 Sn)
 }
 
 /** Get FMMU data from SII FMMU section in slave EEPROM.
- *  @param[in]  context context struct
- *  @param[in]  slave   slave number
- *  @param[out] FMMU    FMMU struct from SII, max. 4 FMMU's
+ *  @param[in]  context context struct
+ *  @param[in]  slave   slave number
+ *  @param[out] FMMU    FMMU struct from SII, max. 4 FMMU's
  *  @return number of FMMU's defined in section
  */
 uint16 ecx_siiFMMU(ecx_contextt *context, uint16 slave, ec_eepromFMMUt *FMMU)
@@ -719,9 +719,9 @@ uint16 ecx_siiFMMU(ecx_contextt *context, uint16 slave, ec_eepromFMMUt *FMMU)
 }
 
 /** Get SM data from SII SM section in slave EEPROM.
- *  @param[in]  context context struct
- *  @param[in]  slave   slave number
- *  @param[out] SM      first SM struct from SII
+ *  @param[in]  context context struct
+ *  @param[in]  slave   slave number
+ *  @param[out] SM      first SM struct from SII
  *  @return number of SM's defined in section
  */
 uint16 ecx_siiSM(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM)
@@ -755,10 +755,10 @@ uint16 ecx_siiSM(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM)
 }
 
 /** Get next SM data from SII SM section in slave EEPROM.
- *  @param[in]  context context struct
- *  @param[in]  slave   slave number
- *  @param[out] SM      first SM struct from SII
- *  @param[in]  n       SM number
+ *  @param[in]  context context struct
+ *  @param[in]  slave   slave number
+ *  @param[out] SM      first SM struct from SII
+ *  @param[in]  n       SM number
  *  @return >0 if OK
  */
 uint16 ecx_siiSMnext(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM, uint16 n)
@@ -789,10 +789,10 @@ uint16 ecx_siiSMnext(ecx_contextt *context, uint16 slave, ec_eepromSMt *SM, uint
 }
 
 /** Get PDO data from SII PDO section in slave EEPROM.
- *  @param[in]  context context struct
- *  @param[in]  slave   slave number
- *  @param[out] PDO     PDO struct from SII
- *  @param[in]  t       0=RXPDO 1=TXPDO
+ *  @param[in]  context context struct
+ *  @param[in]  slave   slave number
+ *  @param[out] PDO     PDO struct from SII
+ *  @param[in]  t       0=RXPDO 1=TXPDO
  *  @return mapping size in bits of PDO
  */
 uint32 ecx_siiPDO(ecx_contextt *context, uint16 slave, ec_eepromPDOt *PDO, uint8 t)
@@ -902,7 +902,7 @@ int ecx_FPRD_multi(ecx_contextt *context, int n, uint16 *configlst, ec_alstatust
 
 /** Read all slave states in slavelist.
  * @warning The BOOT state is actually higher than INIT and PRE_OP (see state representation)
- * @param[in] context context struct
+ * @param[in] context context struct
  * @return lowest state found
  */
 int ecx_readstate(ecx_contextt *context)
@@ -1010,8 +1010,8 @@ int ecx_readstate(ecx_contextt *context)
 
 /** Write slave state, if slave = 0 then write to all slaves.
  * The function does not check if the actual state is changed.
- * @param[in]  context        = context struct
- * @param[in] slave    = Slave number, 0 = master
+ * @param[in]  context context struct
+ * @param[in] slave    Slave number, 0 master
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_writestate(ecx_contextt *context, uint16 slave)
@@ -1043,10 +1043,10 @@ int ecx_writestate(ecx_contextt *context, uint16 slave)
  * This has some implications for the BOOT state. The Boot state representation collides with INIT | PRE_OP so this
  * function cannot be used for slave = 0 and reqstate = EC_STATE_BOOT and also, if the returned state is BOOT, some
  * slaves might actually be in INIT and PRE_OP and not in BOOT.
- * @param[in] context     context struct
- * @param[in] slave       = Slave number, 0 = all slaves (only the "slavelist[0].state" is refreshed)
- * @param[in] reqstate    Requested state
- * @param[in] timeout     Timeout value in us
+ * @param[in] context     context struct
+ * @param[in] slave       Slave number, 0 all slaves (only the "slavelist[0].state" is refreshed)
+ * @param[in] reqstate    Requested state
+ * @param[in] timeout     Timeout value in us
  * @return Requested state, or found state after timeout.
  */
 uint16 ecx_statecheck(ecx_contextt *context, uint16 slave, uint16 reqstate, int timeout)
@@ -1090,7 +1090,7 @@ uint16 ecx_statecheck(ecx_contextt *context, uint16 slave, uint16 reqstate, int
 
 /** Get index of next mailbox counter value.
  * Used for Mailbox Link Layer.
- * @param[in] cnt     Mailbox counter value [0..7]
+ * @param[in] cnt     Mailbox counter value [0..7]
  * @return next mailbox counter value
  */
 uint8 ec_nextmbxcnt(uint8 cnt)
@@ -1105,7 +1105,7 @@ uint8 ec_nextmbxcnt(uint8 cnt)
 }
 
 /** Clear mailbox buffer.
- * @param[out] Mbx     Mailbox buffer to clear
+ * @param[out] Mbx     Mailbox buffer to clear
  */
 void ec_clearmbx(ec_mbxbuft *Mbx)
 {
@@ -1114,8 +1114,8 @@ void ec_clearmbx(ec_mbxbuft *Mbx)
 }
 
 /** Clear mailbox status for a specific group.
- * @param[in]  context = context struct
- * @param[in] group   Group number
+ * @param[in] context context struct
+ * @param[in] group   Group number
  * @return 1 if successfully cleared, 0 otherwise
  */
 int ecx_clearmbxstatus(ecx_contextt *context, uint8 group)
@@ -1131,9 +1131,9 @@ int ecx_clearmbxstatus(ecx_contextt *context, uint8 group)
 /**
  * Read mailbox status from slave.
  *
- * @param[in]  context  context struct
- * @param[in]  slave    Slave number
- * @param[out] SMstat   Pointer to store mailbox status
+ * @param[in]  context  context struct
+ * @param[in]  slave    Slave number
+ * @param[out] SMstat   Pointer to store mailbox status
  * @return Workcounter or EC_NOFRAME
  */
 int ecx_readmbxstatus(ecx_contextt *context, uint16 slave, uint8 *SMstat)
@@ -1154,9 +1154,9 @@ int ecx_readmbxstatus(ecx_contextt *context, uint16 slave, uint8 *SMstat)
 
 /**
  * Read extended mailbox status for a specified slave.
- * @param[in]  context        context struct
- * @param[in]  slave          Slave number
- * @param[out] SMstatex       Pointer to store extended mailbox status
+ * @param[in]  context        context struct
+ * @param[in]  slave          Slave number
+ * @param[out] SMstatex       Pointer to store extended mailbox status
  * @return Workcounter from slave response
  */
 int ecx_readmbxstatusex(ecx_contextt *context, uint16 slave, uint16 *SMstatex)
@@ -1169,9 +1169,9 @@ int ecx_readmbxstatusex(ecx_contextt *context, uint16 slave, uint16 *SMstatex)
 }
 
 /** Check if IN mailbox of slave is empty.
- * @param[in] context  context struct
- * @param[in] slave    Slave number
- * @param[in] timeout  Timeout in us
+ * @param[in] context  context struct
+ * @param[in] slave    Slave number
+ * @param[in] timeout  Timeout in us
  * @return >0 is success
  */
 int ecx_mbxempty(ecx_contextt *context, uint16 slave, int timeout)
@@ -1212,9 +1212,9 @@ int ecx_mbxempty(ecx_contextt *context, uint16 slave, int timeout)
  * track of a work limit to prevent excessive processing in a single
  * call.
  *
- * @param[in]  context  context struct
- * @param[in]  group    group number
- * @param[in]  limit    maximum number of mailbox operations to process
+ * @param[in]  context  context struct
+ * @param[in]  group    group number
+ * @param[in]  limit    maximum number of mailbox operations to process
  * @return Number of mailbox operations processed
  */
 int ecx_mbxinhandler(ecx_contextt *context, uint8 group, int limit)
@@ -1430,9 +1430,9 @@ int ecx_mbxinhandler(ecx_contextt *context, uint8 group, int limit)
  * checking the state of each message in the queue and sending appropriate
  * requests to the slaves. It supports retrying for failed requests.
  *
- * @param[in] context context struct
- * @param[in] group   group number
- * @param[in] limit   maximum number of mailboxes to process
+ * @param[in] context context struct
+ * @param[in] group   group number
+ * @param[in] limit   maximum number of mailboxes to process
  * @return Number of processed mailboxes
  */
 int ecx_mbxouthandler(ecx_contextt *context, uint8 group, int limit)
@@ -1497,7 +1497,7 @@ int ecx_mbxouthandler(ecx_contextt *context, uint8 group, int limit)
  * It first handles incoming messages and then uses the remaining limit
  * for outgoing messages.
  *
- * @param[in] context Pointer to the context structure.
+ * @param[in] context context tructure.
  * @param[in] group Group number.
  * @param[in] limit The maximum number of mailboxes to process.
  *
@@ -1512,10 +1512,10 @@ int ecx_mbxhandler(ecx_contextt *context, uint8 group, int limit)
 
 /** Write IN mailbox to slave.
  * Mailbox is fetched from pool by caller, ownership is transferred and dropped back to pool automatically.
- * @param[in]  context    context struct
- * @param[in]  slave      Slave number
- * @param[out] mbx        Pointer to mailbox data
- * @param[in]  timeout    Timeout in us
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number
+ * @param[out] mbx        Pointer to mailbox data
+ * @param[in]  timeout    Timeout in us
  * @return Work counter (>0 is success)
  */
 int ecx_mbxsend(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int timeout)
@@ -1583,10 +1583,10 @@ int ecx_mbxsend(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int timeou
  * Supports Mailbox Link Layer with repeat requests.
  * Mailbox is fetched from pool, caller is owner after return
  * and therefore should drop it back to the pool when finished.
- * @param[in]  context    context struct
- * @param[in]  slave      Slave number
- * @param[out] mbx        Double pointer to mailbox data
- * @param[in]  timeout    Timeout in us
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number
+ * @param[out] mbx        Double pointer to mailbox data
+ * @param[in]  timeout    Timeout in us
  * @return Work counter (>0 is success)
  */
 int ecx_mbxreceive(ecx_contextt *context, uint16 slave, ec_mbxbuft **mbx, int timeout)
@@ -1761,9 +1761,9 @@ int ecx_mbxreceive(ecx_contextt *context, uint16 slave, ec_mbxbuft **mbx, int ti
 
 /** Send ENI mailbox protocol initcmds to a slave for a given transition.
  * Currently, only CoE commands are supported.
- * @param[in]  context    context struct
- * @param[in]  slave      Slave number
- * @param[in]  transition transition (ECT_ESMTRANS_*) for which to send commands
+ * @param[in]  context    context struct
+ * @param[in]  slave      Slave number
+ * @param[in]  transition transition (ECT_ESMTRANS_*) for which to send commands
  * @return 1 on success, 0 on failure
  */
 int ecx_mbxENIinitcmds(ecx_contextt *context, uint16 slave, uint16_t transition)
@@ -1829,9 +1829,9 @@ int ecx_mbxENIinitcmds(ecx_contextt *context, uint16 slave, uint16_t transition)
 }
 
 /** Dump complete EEPROM data from slave in buffer.
- * @param[in]  context  context struct
- * @param[in]  slave    Slave number
- * @param[out] esibuf   EEPROM data buffer, make sure it is big enough.
+ * @param[in]  context  context struct
+ * @param[in]  slave    Slave number
+ * @param[out] esibuf   EEPROM data buffer, make sure it is big enough.
  */
 void ecx_esidump(ecx_contextt *context, uint16 slave, uint8 *esibuf)
 {
@@ -1869,10 +1869,10 @@ void ecx_esidump(ecx_contextt *context, uint16 slave, uint8 *esibuf)
 }
 
 /** Read EEPROM from slave bypassing cache.
- * @param[in] context   context struct
- * @param[in] slave     Slave number
- * @param[in] eeproma   (WORD) Address in the EEPROM
- * @param[in] timeout   Timeout in us.
+ * @param[in] context   context struct
+ * @param[in] slave     Slave number
+ * @param[in] eeproma   (WORD) Address in the EEPROM
+ * @param[in] timeout   Timeout in us.
  * @return EEPROM data 32bit
  */
 uint32 ecx_readeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, int timeout)
@@ -1886,11 +1886,11 @@ uint32 ecx_readeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, int t
 }
 
 /** Write EEPROM to slave bypassing cache.
- * @param[in] context   context struct
- * @param[in] slave     Slave number
- * @param[in] eeproma   (WORD) Address in the EEPROM
- * @param[in] data      16bit data
- * @param[in] timeout   Timeout in us.
+ * @param[in] context   context struct
+ * @param[in] slave     Slave number
+ * @param[in] eeproma   (WORD) Address in the EEPROM
+ * @param[in] data      16bit data
+ * @param[in] timeout   Timeout in us.
  * @return >0 if OK
  */
 int ecx_writeeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, uint16 data, int timeout)
@@ -1903,8 +1903,8 @@ int ecx_writeeeprom(ecx_contextt *context, uint16 slave, uint16 eeproma, uint16
 }
 
 /** Set eeprom control to master. Only if set to PDI.
- * @param[in] context   context struct
- * @param[in] slave     Slave number
+ * @param[in] context   context struct
+ * @param[in] slave     Slave number
  * @return >0 if OK
  */
 int ecx_eeprom2master(ecx_contextt *context, uint16 slave)
@@ -1934,8 +1934,8 @@ int ecx_eeprom2master(ecx_contextt *context, uint16 slave)
 }
 
 /** Set eeprom control to PDI. Only if set to master.
- * @param[in]  context        = context struct
- * @param[in] slave     Slave number
+ * @param[in]  context  context struct
+ * @param[in] slave     Slave number
  * @return >0 if OK
  */
 int ecx_eeprom2pdi(ecx_contextt *context, uint16 slave)
@@ -1984,10 +1984,10 @@ uint16 ecx_eeprom_waitnotbusyAP(ecx_contextt *context, uint16 aiadr, uint16 *est
 }
 
 /** Read EEPROM from slave bypassing cache. APRD method.
- * @param[in] context     context struct
- * @param[in] aiadr       auto increment address of slave
- * @param[in] eeproma     (WORD) Address in the EEPROM
- * @param[in] timeout     Timeout in us.
+ * @param[in] context     context struct
+ * @param[in] aiadr       auto increment address of slave
+ * @param[in] eeproma     (WORD) Address in the EEPROM
+ * @param[in] timeout     Timeout in us.
  * @return EEPROM data 64bit or 32bit
  */
 uint64 ecx_readeepromAP(ecx_contextt *context, uint16 aiadr, uint16 eeproma, int timeout)
@@ -2059,11 +2059,11 @@ uint64 ecx_readeepromAP(ecx_contextt *context, uint16 aiadr, uint16 eeproma, int
 }
 
 /** Write EEPROM to slave bypassing cache. APWR method.
- * @param[in] context   context struct
- * @param[in] aiadr     configured address of slave
- * @param[in] eeproma   (WORD) Address in the EEPROM
- * @param[in] data      16bit data
- * @param[in] timeout   Timeout in us.
+ * @param[in] context   context struct
+ * @param[in] aiadr     configured address of slave
+ * @param[in] eeproma   (WORD) Address in the EEPROM
+ * @param[in] data      16bit data
+ * @param[in] timeout   Timeout in us.
  * @return >0 if OK
  */
 int ecx_writeeepromAP(ecx_contextt *context, uint16 aiadr, uint16 eeproma, uint16 data, int timeout)
@@ -2146,10 +2146,10 @@ uint16 ecx_eeprom_waitnotbusyFP(ecx_contextt *context, uint16 configadr, uint16
 }
 
 /** Read EEPROM from slave bypassing cache. FPRD method.
- * @param[in] context     context struct
- * @param[in] configadr   configured address of slave
- * @param[in] eeproma     (WORD) Address in the EEPROM
- * @param[in] timeout     Timeout in us.
+ * @param[in] context     context struct
+ * @param[in] configadr   configured address of slave
+ * @param[in] eeproma     (WORD) Address in the EEPROM
+ * @param[in] timeout     Timeout in us.
  * @return EEPROM data 64bit or 32bit
  */
 uint64 ecx_readeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma, int timeout)
@@ -2221,11 +2221,11 @@ uint64 ecx_readeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma,
 }
 
 /** Write EEPROM to slave bypassing cache. FPWR method.
- * @param[in]  context        = context struct
- * @param[in] configadr   configured address of slave
- * @param[in] eeproma     (WORD) Address in the EEPROM
- * @param[in] data        16bit data
- * @param[in] timeout     Timeout in us.
+ * @param[in]  context    context struct
+ * @param[in] configadr   configured address of slave
+ * @param[in] eeproma     (WORD) Address in the EEPROM
+ * @param[in] data        16bit data
+ * @param[in] timeout     Timeout in us.
  * @return >0 if OK
  */
 int ecx_writeeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma, uint16 data, int timeout)
@@ -2282,9 +2282,9 @@ int ecx_writeeepromFP(ecx_contextt *context, uint16 configadr, uint16 eeproma, u
 
 /** Read EEPROM from slave bypassing cache.
  * Parallel read step 1, make request to slave.
- * @param[in] context     context struct
- * @param[in] slave       Slave number
- * @param[in] eeproma     (WORD) Address in the EEPROM
+ * @param[in] context     context struct
+ * @param[in] slave       Slave number
+ * @param[in] eeproma     (WORD) Address in the EEPROM
  */
 void ecx_readeeprom1(ecx_contextt *context, uint16 slave, uint16 eeproma)
 {
@@ -2313,9 +2313,9 @@ void ecx_readeeprom1(ecx_contextt *context, uint16 slave, uint16 eeproma)
 
 /** Read EEPROM from slave bypassing cache.
  * Parallel read step 2, actual read from slave.
- * @param[in]  context        = context struct
- * @param[in] slave       Slave number
- * @param[in] timeout     Timeout in us.
+ * @param[in]  context    context struct
+ * @param[in] slave       Slave number
+ * @param[in] timeout     Timeout in us.
  * @return EEPROM data 32bit
  */
 uint32 ecx_readeeprom2(ecx_contextt *context, uint16 slave, int timeout)
@@ -2339,11 +2339,11 @@ uint32 ecx_readeeprom2(ecx_contextt *context, uint16 slave, int timeout)
 }
 
 /** Push index of segmented LRD/LWR/LRW combination.
- * @param[in]  context        = context struct
- * @param[in] idx         Used datagram index.
- * @param[in] data        Pointer to process data segment.
- * @param[in] length      Length of data segment in bytes.
- * @param[in] DCO         Offset position of DC frame.
+ * @param[in]  context    context struct
+ * @param[in] idx         Used datagram index.
+ * @param[in] data        Pointer to process data segment.
+ * @param[in] length      Length of data segment in bytes.
+ * @param[in] DCO         Offset position of DC frame.
  */
 static void ecx_pushindex(ecx_contextt *context, uint8 idx, void *data, uint16 length, uint16 DCO)
 {
@@ -2358,7 +2358,7 @@ static void ecx_pushindex(ecx_contextt *context, uint8 idx, void *data, uint16 l
 }
 
 /** Pull index of segmented LRD/LWR/LRW combination.
- * @param[in]  context        context struct
+ * @param[in]  context        context struct
  * @return Stack location, -1 if stack is empty.
  */
 static int ecx_pullindex(ecx_contextt *context)
@@ -2376,7 +2376,7 @@ static int ecx_pullindex(ecx_contextt *context)
 /**
  * Clear the idx stack.
  *
- * @param context           context struct
+ * @param context           context struct
  */
 static void ecx_clearindex(ecx_contextt *context)
 {
@@ -2399,8 +2399,8 @@ static void ecx_clearindex(ecx_contextt *context)
  * In contrast to the base LRW function this function is non-blocking.
  * If the processdata does not fit in one datagram, multiple are used.
  * In order to recombine the slave response, a stack is used.
- * @param[in]  context        context struct
- * @param[in]  group          group number
+ * @param[in]  context        context struct
+ * @param[in]  group          group number
  * @return >0 if processdata is transmitted.
  */
 int ecx_send_processdata_group(ecx_contextt *context, uint8 group)
@@ -2583,9 +2583,9 @@ int ecx_send_processdata_group(ecx_contextt *context, uint8 group)
  * Second part from ec_send_processdata().
  * Received datagrams are recombined with the processdata with help from the stack.
  * If a datagram contains input processdata it copies it to the processdata structure.
- * @param[in]  context        context struct
- * @param[in]  group          group number
- * @param[in]  timeout        Timeout in us.
+ * @param[in]  context        context struct
+ * @param[in]  group          group number
+ * @param[in]  timeout        Timeout in us.
  * @return Work counter.
  */
 int ecx_receive_processdata_group(ecx_contextt *context, uint8 group, int timeout)
@@ -2669,7 +2669,7 @@ int ecx_receive_processdata_group(ecx_contextt *context, uint8 group, int timeou
 /**
  * Send processdata to slaves.
  * Group number is zero (default).
- * @param[in]  context        context struct
+ * @param[in]  context        context struct
  * @return Work counter.
  */
 int ecx_send_processdata(ecx_contextt *context)
@@ -2680,8 +2680,8 @@ int ecx_send_processdata(ecx_contextt *context)
 /**
  * Receive processdata from slaves.
  * Group number is zero (default).
- * @param[in]  context        context struct
- * @param[in]  timeout        Timeout in us.
+ * @param[in]  context        context struct
+ * @param[in]  timeout        Timeout in us.
  * @return Work counter.
  */
 int ecx_receive_processdata(ecx_contextt *context, int timeout)
index 2f79f2d959e3a321a6e5316e34789d3d14b29275..8f4489ff3387eee235e2b93ec9a2bc06de94642b 100644 (file)
@@ -231,7 +231,7 @@ const ec_mbxerrorlist_t ec_mbxerrorlist[] = {
 
 /** Look up text string that belongs to SDO error code.
  *
- * @param[in] sdoerrorcode   SDO error code as defined in EtherCAT protocol
+ * @param[in] sdoerrorcode   SDO error code as defined in EtherCAT protocol
  * @return readable string
  */
 const char *ec_sdoerror2string(uint32 sdoerrorcode)
@@ -249,7 +249,7 @@ const char *ec_sdoerror2string(uint32 sdoerrorcode)
 
 /** Look up text string that belongs to AL status code.
  *
- * @param[in] ALstatuscode   AL status code as defined in EtherCAT protocol
+ * @param[in] ALstatuscode   AL status code as defined in EtherCAT protocol
  * @return readable string
  */
 char *ec_ALstatuscode2string(uint16 ALstatuscode)
@@ -267,7 +267,7 @@ char *ec_ALstatuscode2string(uint16 ALstatuscode)
 
 /** Look up text string that belongs to SoE error code.
  *
- * @param[in] errorcode   SoE error code as defined in EtherCAT protocol
+ * @param[in] errorcode   SoE error code as defined in EtherCAT protocol
  * @return readable string
  */
 char *ec_soeerror2string(uint16 errorcode)
@@ -285,7 +285,7 @@ char *ec_soeerror2string(uint16 errorcode)
 
 /** Look up text string that belongs to MBX error code.
  *
- * @param[in] errorcode   MBX error code as defined in EtherCAT protocol
+ * @param[in] errorcode   MBX error code as defined in EtherCAT protocol
  * @return readable string
  */
 char *ec_mbxerror2string(uint16 errorcode)
@@ -303,7 +303,7 @@ char *ec_mbxerror2string(uint16 errorcode)
 
 /** Convert an error to text string.
  *
- * @param[in] Ec Struct describing the error.
+ * @param[in] Ec Struct describing the error.
  * @return readable string
  */
 char *ecx_err2string(const ec_errort Ec)
@@ -360,7 +360,7 @@ char *ecx_err2string(const ec_errort Ec)
 
 /** Look up error in ec_errorlist and convert to text string.
  *
- * @param[in]  context        context struct
+ * @param[in]  context        context struct
  * @return readable string
  */
 char *ecx_elist2string(ecx_contextt *context)
index 69aa09ef692e835169c48eebee89ffb48601b00c..ad5b5a10b5e29c6001c7ed384b03690a68444679 100644 (file)
@@ -36,10 +36,10 @@ OSAL_PACKED_END
 
 /** Report SoE error.
  *
- * @param[in]  context        = context struct
- * @param[in]  Slave      Slave number
- * @param[in]  idn        IDN that generated error
- * @param[in]  Error      Error code, see EtherCAT documentation for list
+ * @param[in]  context    context struct
+ * @param[in]  Slave      Slave number
+ * @param[in]  idn        IDN that generated error
+ * @param[in]  Error      Error code, see EtherCAT documentation for list
  */
 void ecx_SoEerror(ecx_contextt *context, uint16 Slave, uint16 idn, uint16 Error)
 {
@@ -62,14 +62,14 @@ void ecx_SoEerror(ecx_contextt *context, uint16 Slave, uint16 idn, uint16 Error)
  * is larger than the mailbox size then the response is segmented. The function
  * will combine all segments and copy them to the parameter buffer.
  *
- * @param[in]  context        = context struct
- * @param[in]  slave         Slave number
- * @param[in]  driveNo       Drive number in slave
- * @param[in]  elementflags  Flags to select what properties of IDN are to be transferred.
- * @param[in]  idn           IDN.
- * @param[in,out] psize      Size in bytes of parameter buffer, returns bytes read from SoE.
- * @param[out] p             Pointer to parameter buffer
- * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context       context struct
+ * @param[in]  slave         Slave number
+ * @param[in]  driveNo       Drive number in slave
+ * @param[in]  elementflags  Flags to select what properties of IDN are to be transferred.
+ * @param[in]  idn           IDN.
+ * @param[in,out] psize      Size in bytes of parameter buffer, returns bytes read from SoE.
+ * @param[out] p             Pointer to parameter buffer
+ * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_SoEread(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elementflags, uint16 idn, int *psize, void *p, int timeout)
@@ -189,14 +189,14 @@ int ecx_SoEread(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elemen
  * 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.
  *
- * @param[in]  context        = context struct
- * @param[in]  slave         Slave number
- * @param[in]  driveNo       Drive number in slave
- * @param[in]  elementflags  Flags to select what properties of IDN are to be transferred.
- * @param[in]  idn           IDN.
- * @param[in]  psize         Size in bytes of parameter buffer.
- * @param[out] p             Pointer to parameter buffer
- * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
+ * @param[in]  context       context struct
+ * @param[in]  slave         Slave number
+ * @param[in]  driveNo       Drive number in slave
+ * @param[in]  elementflags  Flags to select what properties of IDN are to be transferred.
+ * @param[in]  idn           IDN.
+ * @param[in]  psize         Size in bytes of parameter buffer.
+ * @param[out] p             Pointer to parameter buffer
+ * @param[in]  timeout       Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response
  */
 int ecx_SoEwrite(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elementflags, uint16 idn, int psize, void *p, int timeout)
@@ -310,10 +310,10 @@ int ecx_SoEwrite(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 eleme
  * tries to read them and collect a full input and output mapping size
  * of designated slave.
  *
- * @param[in]  context context struct
- * @param[in]  slave   Slave number
- * @param[out] Osize   Size in bits of output mapping (MTD) found
- * @param[out] Isize   Size in bits of input mapping (AT) found
+ * @param[in]  context context struct
+ * @param[in]  slave   Slave number
+ * @param[out] Osize   Size in bits of output mapping (MTD) found
+ * @param[out] Isize   Size in bits of input mapping (AT) found
  * @return >0 if mapping successful.
  */
 int ecx_readIDNmap(ecx_contextt *context, uint16 slave, uint32 *Osize, uint32 *Isize)