OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cipmessagerouter.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2009, Rockwell Automation, Inc.
3  * All rights reserved.
4  *
5  ******************************************************************************/
6 #ifndef OPENER_CIPMESSAGEROUTER_H_
7 #define OPENER_CIPMESSAGEROUTER_H_
8 
9 #include "typedefs.h"
10 #include "ciptypes.h"
11 
12 static const int kCipMessageRouterClassCode = 0x02;
13 
20 
21 /* public functions */
22 
27 
30 void DeleteAllClasses(void);
31 
44  int data_length,
45  const struct sockaddr *const originator_address,
46  const int encapsulation_session);
47 
57 
58 #endif /* OPENER_CIPMESSAGEROUTER_H_ */
Class is a subclass of Instance.
Definition: ciptypes.h:237
EipStatus RegisterCipClass(CipClass *cip_class)
Register a CIP Class to the message router.
EipStatus
EIP stack status enum.
Definition: typedefs.h:93
uint8_t EipUint8
Definition: typedefs.h:32
EipStatus NotifyMessageRouter(EipUint8 *data, int data_length, const struct sockaddr *const originator_address, const int encapsulation_session)
Notify the MessageRouter that an explicit message (connected or unconnected) has been received...
CIP Message Router Response.
Definition: ciptypes.h:199
void DeleteAllClasses(void)
Free all data allocated by the classes created in the CIP stack.
EipStatus CipMessageRouterInit(void)
Initialize the data structures of the message router.
CipMessageRouterResponse g_message_router_response
Structure for storing the Response generated by an explict message.