55 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
| * co_user.h - contains defines for user transmit/receive services
 | |
| *
 | |
| * Copyright (c) 2015-2023 emotas embedded communication GmbH
 | |
| *
 | |
| *-------------------------------------------------------------------
 | |
| * $Id: co_user.h 49599 2023-09-26 12:39:43Z 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 <co_datatype.h>
 | |
| 
 | |
| 
 | |
| /* 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_CONST UNSIGNED16 msgNr, CO_CONST UNSIGNED32 canId, CO_CONST UNSIGNED8 dataLen, CO_CONST UNSIGNED8 *pRecData);
 | |
| 
 | |
| 
 | |
| /* function prototypes */
 | |
| EXTERN_DECL RET_T coUserInitTransmitMessage(UNSIGNED16 msgNr,
 | |
| 				UNSIGNED32 canId, UNSIGNED8 dataLen);
 | |
| EXTERN_DECL RET_T coUserInitReceiveMessage(UNSIGNED16	msgNr,
 | |
| 				UNSIGNED32 canId, UNSIGNED32 ignoreMask, UNSIGNED8 cobFlags,
 | |
| 				UNSIGNED8 dataLen, CO_EVENT_USER_T pRecFct);
 | |
| EXTERN_DECL RET_T coUserTransmitMessage(UNSIGNED16 msgNr,
 | |
| 				const UNSIGNED8	*pData);
 | |
| 
 | |
| #endif /* CO_USER_H */
 |