name all exported structs (#125)

This commit is contained in:
Hans-Erik Floryd 2017-08-15 19:02:00 +02:00 committed by nakarlsson
parent c8a11227b5
commit 0ece3165a0

32
soem/ethercatmain.h Normal file → Executable file
View File

@ -50,7 +50,7 @@ struct ec_adapter
/** record for FMMU */ /** record for FMMU */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_fmmu
{ {
uint32 LogStart; uint32 LogStart;
uint16 LogLength; uint16 LogLength;
@ -67,7 +67,7 @@ PACKED_END
/** record for sync manager */ /** record for sync manager */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_sm
{ {
uint16 StartAddr; uint16 StartAddr;
uint16 SMlength; uint16 SMlength;
@ -76,7 +76,7 @@ typedef struct PACKED
PACKED_END PACKED_END
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_state_status
{ {
uint16 State; uint16 State;
uint16 Unused; uint16 Unused;
@ -101,7 +101,7 @@ PACKED_END
#define EC_SMENABLEMASK 0xfffeffff #define EC_SMENABLEMASK 0xfffeffff
/** for list of ethercat slaves detected */ /** for list of ethercat slaves detected */
typedef struct typedef struct ec_slave
{ {
/** state of slave */ /** state of slave */
uint16 state; uint16 state;
@ -232,7 +232,7 @@ typedef struct
} ec_slavet; } ec_slavet;
/** for list of ethercat slave groups */ /** for list of ethercat slave groups */
typedef struct typedef struct ec_group
{ {
/** logical start address for this group */ /** logical start address for this group */
uint32 logstartaddr; uint32 logstartaddr;
@ -269,7 +269,7 @@ typedef struct
} ec_groupt; } ec_groupt;
/** SII FMMU structure */ /** SII FMMU structure */
typedef struct typedef struct ec_eepromFMMU
{ {
uint16 Startpos; uint16 Startpos;
uint8 nFMMU; uint8 nFMMU;
@ -280,7 +280,7 @@ typedef struct
} ec_eepromFMMUt; } ec_eepromFMMUt;
/** SII SM structure */ /** SII SM structure */
typedef struct typedef struct ec_eepromSM
{ {
uint16 Startpos; uint16 Startpos;
uint8 nSM; uint8 nSM;
@ -293,7 +293,7 @@ typedef struct
} ec_eepromSMt; } ec_eepromSMt;
/** record to store rxPDO and txPDO table from eeprom */ /** record to store rxPDO and txPDO table from eeprom */
typedef struct typedef struct ec_eepromPDO
{ {
uint16 Startpos; uint16 Startpos;
uint16 Length; uint16 Length;
@ -309,7 +309,7 @@ typedef uint8 ec_mbxbuft[EC_MAXMBX + 1];
/** standard ethercat mailbox header */ /** standard ethercat mailbox header */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_mbxheader
{ {
uint16 length; uint16 length;
uint16 address; uint16 address;
@ -320,7 +320,7 @@ PACKED_END
/** ALstatus and ALstatus code */ /** ALstatus and ALstatus code */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_alstatus
{ {
uint16 alstatus; uint16 alstatus;
uint16 unused; uint16 unused;
@ -329,7 +329,7 @@ typedef struct PACKED
PACKED_END PACKED_END
/** stack structure to store segmented LRD/LWR/LRW constructs */ /** stack structure to store segmented LRD/LWR/LRW constructs */
typedef struct typedef struct ec_idxstack
{ {
uint8 pushed; uint8 pushed;
uint8 pulled; uint8 pulled;
@ -339,7 +339,7 @@ typedef struct
} ec_idxstackT; } ec_idxstackT;
/** ringbuf for error storage */ /** ringbuf for error storage */
typedef struct typedef struct ec_ering
{ {
int16 head; int16 head;
int16 tail; int16 tail;
@ -348,7 +348,7 @@ typedef struct
/** SyncManager Communication Type structure for CA */ /** SyncManager Communication Type structure for CA */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_SMcommtype
{ {
uint8 n; uint8 n;
uint8 nu1; uint8 nu1;
@ -358,7 +358,7 @@ PACKED_END
/** SDO assign structure for CA */ /** SDO assign structure for CA */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_PDOassign
{ {
uint8 n; uint8 n;
uint8 nu1; uint8 nu1;
@ -368,7 +368,7 @@ PACKED_END
/** SDO description structure for CA */ /** SDO description structure for CA */
PACKED_BEGIN PACKED_BEGIN
typedef struct PACKED typedef struct PACKED ec_PDOdesc
{ {
uint8 n; uint8 n;
uint8 nu1; uint8 nu1;
@ -377,7 +377,7 @@ typedef struct PACKED
PACKED_END PACKED_END
/** Context structure , referenced by all ecx functions*/ /** Context structure , referenced by all ecx functions*/
typedef struct typedef struct ecx_context
{ {
/** port reference, may include red_port */ /** port reference, may include red_port */
ecx_portt *port; ecx_portt *port;