/* * co_user.h - contains defines for user transmit/receive services * * Copyright (c) 2015-2023 emotas embedded communication GmbH * *------------------------------------------------------------------- * $Id: co_user.h 49601 2023-09-26 12:58:49Z boe $ *------------------------------------------------------------------- * * * */ /** * \brief defines for time services * * \file co_user.h - contains defines for time services * */ #ifndef CO_USER_H #define CO_USER_H 1 #include /* constant */ /** \brief function pointer to user function * * \param msgNr - message number * \param cobid - received can id * \param dataLen - received data len * \param precData - received data * * \return void */ typedef void (* CO_EVENT_USER_T)(CO_LINE_TYPE, CO_CONST UNSIGNED16 msgNr, CO_CONST UNSIGNED32 canId, CO_CONST UNSIGNED8 dataLen, CO_CONST UNSIGNED8 *pRecData); /* function prototypes */ EXTERN_DECL RET_T coUserInitTransmitMessage(CO_LINE_DECL, UNSIGNED16 msgNr, UNSIGNED32 canId, UNSIGNED8 dataLen); EXTERN_DECL RET_T coUserInitReceiveMessage(CO_LINE_DECL, UNSIGNED16 msgNr, UNSIGNED32 canId, UNSIGNED32 ignoreMask, UNSIGNED8 cobFlags, UNSIGNED8 dataLen, CO_EVENT_USER_T pRecFct); EXTERN_DECL RET_T coUserTransmitMessage(CO_LINE_DECL, UNSIGNED16 msgNr, const UNSIGNED8 *pData); #endif /* CO_USER_H */