CANopenNode
CO_GFC.h
Go to the documentation of this file.
1 
26 #ifndef CO_GFC_H
27 #define CO_GFC_H
28 
29 #include "301/CO_driver.h"
30 
31 /* default configuration, see CO_config.h */
32 #ifndef CO_CONFIG_GFC
33 #define CO_CONFIG_GFC (0)
34 #endif
35 
36 #if ((CO_CONFIG_GFC) & CO_CONFIG_GFC_ENABLE) || defined CO_DOXYGEN
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
60 typedef struct {
62 #if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) || defined CO_DOXYGEN
65 #endif
66 #if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) || defined CO_DOXYGEN
67 
68  void (*pFunctSignalSafe)(void *object);
71 #endif
72 } CO_GFC_t;
73 
91  uint8_t *valid,
92  CO_CANmodule_t *GFC_CANdevRx,
93  uint16_t GFC_rxIdx,
94  uint16_t CANidRxGFC,
95  CO_CANmodule_t *GFC_CANdevTx,
96  uint16_t GFC_txIdx,
97  uint16_t CANidTxGFC);
98 
99 #if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) || defined CO_DOXYGEN
100 
112  void *object,
113  void (*pFunctSignalSafe)(void *object));
114 #endif
115 
116 #if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) || defined CO_DOXYGEN
117 
128 #endif
129  /* CO_GFC */
131 
132 #ifdef __cplusplus
133 }
134 #endif /*__cplusplus*/
135 
136 #endif /* (CO_CONFIG_GFC) & CO_CONFIG_GFC_ENABLE */
137 
138 #endif /* CO_GFC_H */
CO_driver.h
Interface between CAN hardware and CANopenNode.
CO_GFC_t::CANtxBuff
CO_CANtx_t * CANtxBuff
CAN transmit buffer inside CANdevTx.
Definition: CO_GFC.h:64
CO_GFC_t::valid
uint8_t * valid
From CO_GFC_init()
Definition: CO_GFC.h:61
uint16_t
unsigned int uint16_t
UNSIGNED16 in CANopen (0006h), 16-bit unsigned integer.
Definition: CO_driver.h:153
CO_GFC_t
GFC object.
Definition: CO_GFC.h:60
CO_ReturnError_t
CO_ReturnError_t
Return values of some CANopen functions.
Definition: CO_driver.h:488
CO_GFC_init
CO_ReturnError_t CO_GFC_init(CO_GFC_t *GFC, uint8_t *valid, CO_CANmodule_t *GFC_CANdevRx, uint16_t GFC_rxIdx, uint16_t CANidRxGFC, CO_CANmodule_t *GFC_CANdevTx, uint16_t GFC_txIdx, uint16_t CANidTxGFC)
Initialize GFC object.
CO_GFCsend
CO_ReturnError_t CO_GFCsend(CO_GFC_t *GFC)
Send GFC message.
CO_GFC_t::functSignalObjectSafe
void * functSignalObjectSafe
From CO_GFC_initCallbackEnterSafeState() or NULL.
Definition: CO_GFC.h:70
CO_GFC_initCallbackEnterSafeState
void CO_GFC_initCallbackEnterSafeState(CO_GFC_t *GFC, void *object, void(*pFunctSignalSafe)(void *object))
Initialize GFC callback function.
CO_CANmodule_t
Complete CAN module object.
Definition: CO_driver.h:319
CO_GFC_t::CANdevTx
CO_CANmodule_t * CANdevTx
From CO_GFC_init()
Definition: CO_GFC.h:63
CO_CANtx_t
Configuration object for CAN transmit message for specific CANopenNode Object.
Definition: CO_driver.h:299
uint8_t
unsigned char uint8_t
UNSIGNED8 in CANopen (0005h), 8-bit unsigned integer.
Definition: CO_driver.h:151