CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_GFC.h
Go to the documentation of this file.
1
22#ifndef CO_GFC_H
23#define CO_GFC_H
24
25#include "301/CO_driver.h"
26#include "301/CO_ODinterface.h"
27
28/* default configuration, see CO_config.h */
29#ifndef CO_CONFIG_GFC
30#define CO_CONFIG_GFC (0)
31#endif
32
33#if (((CO_CONFIG_GFC)&CO_CONFIG_GFC_ENABLE) != 0) || defined CO_DOXYGEN
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
53typedef struct {
56#if (((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) != 0) || defined CO_DOXYGEN
59#endif
60#if (((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) != 0) || defined CO_DOXYGEN
61 void (*pFunctSignalSafe)(void* object);
63#endif
64} CO_GFC_t;
65
83CO_ReturnError_t CO_GFC_init(CO_GFC_t* GFC, OD_entry_t* OD_1300_gfcParameter, CO_CANmodule_t* GFC_CANdevRx,
84 uint16_t GFC_rxIdx, uint16_t CANidRxGFC, CO_CANmodule_t* GFC_CANdevTx, uint16_t GFC_txIdx,
85 uint16_t CANidTxGFC);
86
87#if (((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) != 0) || defined CO_DOXYGEN
98void CO_GFC_initCallbackEnterSafeState(CO_GFC_t* GFC, void* object, void (*pFunctSignalSafe)(void* object));
99#endif
100
101#if (((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) != 0) || defined CO_DOXYGEN
112#endif
113
114 /* CO_GFC */
115
116#ifdef __cplusplus
117}
118#endif /* __cplusplus */
119
120#endif /* (CO_CONFIG_GFC) & CO_CONFIG_GFC_ENABLE */
121
122#endif /* CO_GFC_H */
CANopen Object Dictionary interface.
Interface between CAN hardware and CANopenNode.
CO_ReturnError_t CO_GFCsend(CO_GFC_t *GFC)
Send GFC message.
CO_ReturnError_t CO_GFC_init(CO_GFC_t *GFC, OD_entry_t *OD_1300_gfcParameter, 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.
void CO_GFC_initCallbackEnterSafeState(CO_GFC_t *GFC, void *object, void(*pFunctSignalSafe)(void *object))
Initialize GFC callback function.
unsigned int uint16_t
UNSIGNED16 in CANopen (0006h), 16-bit unsigned integer.
Definition CO_driver.h:132
uint_fast8_t bool_t
Boolean data type for general use.
Definition CO_driver.h:126
CO_ReturnError_t
Return values of some CANopen functions.
Definition CO_driver.h:449
Complete CAN module object.
Definition CO_driver.h:268
Configuration object for CAN transmit message for specific CANopenNode Object.
Definition CO_driver.h:250
GFC object.
Definition CO_GFC.h:53
CO_CANmodule_t * CANdevTx
From CO_GFC_init()
Definition CO_GFC.h:57
OD_extension_t OD_gfcParam_ext
Extension for OD object.
Definition CO_GFC.h:55
void * functSignalObjectSafe
From CO_GFC_initCallbackEnterSafeState() or NULL.
Definition CO_GFC.h:62
bool_t valid
From OD parameter 1300.
Definition CO_GFC.h:54
CO_CANtx_t * CANtxBuff
CAN transmit buffer inside CANdevTx.
Definition CO_GFC.h:58
Object Dictionary entry for one OD object.
Definition CO_ODinterface.h:272
Extension of OD object, which can optionally be specified by application in initialization phase with...
Definition CO_ODinterface.h:245