CO_GFC.h
Go to the documentation of this file.
#ifndef CO_GFC_H
#define CO_GFC_H
#include "301/CO_driver.h"
/* default configuration, see CO_config.h */
#ifndef CO_CONFIG_GFC
#define CO_CONFIG_GFC (0)
#endif
#if ((CO_CONFIG_GFC) & CO_CONFIG_GFC_ENABLE) || defined CO_DOXYGEN
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t *valid;
#if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) || defined CO_DOXYGEN
CO_CANmodule_t *CANdevTx;
CO_CANtx_t *CANtxBuff;
#endif
#if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) || defined CO_DOXYGEN
void (*pFunctSignalSafe)(void *object);
void *functSignalObjectSafe;
#endif
} CO_GFC_t;
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);
#if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_CONSUMER) || defined CO_DOXYGEN
void CO_GFC_initCallbackEnterSafeState(CO_GFC_t *GFC,
void *object,
void (*pFunctSignalSafe)(void *object));
#endif
#if ((CO_CONFIG_GFC)&CO_CONFIG_GFC_PRODUCER) || defined CO_DOXYGEN
CO_ReturnError_t CO_GFCsend(CO_GFC_t *GFC);
#endif
/* CO_GFC */
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif /* (CO_CONFIG_GFC) & CO_CONFIG_GFC_ENABLE */
#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