summaryrefslogtreecommitdiff
path: root/apps/modbus/tcp/mbtcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/modbus/tcp/mbtcp.h')
-rw-r--r--apps/modbus/tcp/mbtcp.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/apps/modbus/tcp/mbtcp.h b/apps/modbus/tcp/mbtcp.h
index f00152810..421896dee 100644
--- a/apps/modbus/tcp/mbtcp.h
+++ b/apps/modbus/tcp/mbtcp.h
@@ -28,26 +28,32 @@
* File: $Id: mbtcp.h,v 1.2 2006/12/07 22:10:34 wolti Exp $
*/
-#ifndef _MB_TCP_H
-#define _MB_TCP_H
+#ifndef __APPS_MODBUS_TCP_MBTCP_H
+#define __APPS_MODBUS_TCP_MBTCP_H
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
#ifdef __cplusplus
PR_BEGIN_EXTERN_C
#endif
-/* ----------------------- Defines ------------------------------------------*/
#define MB_TCP_PSEUDO_ADDRESS 255
-/* ----------------------- Function prototypes ------------------------------*/
- eMBErrorCode eMBTCPDoInit( uint16_t ucTCPPort );
-void eMBTCPStart( void );
-void eMBTCPStop( void );
-eMBErrorCode eMBTCPReceive( uint8_t * pucRcvAddress, uint8_t ** pucFrame,
- uint16_t * pusLength );
-eMBErrorCode eMBTCPSend( uint8_t _unused, const uint8_t * pucFrame,
- uint16_t usLength );
+/****************************************************************************
+ * Public Function Protototypes
+ ****************************************************************************/
+
+eMBErrorCode eMBTCPDoInit(uint16_t ucTCPPort);
+void eMBTCPStart(void);
+void eMBTCPStop(void);
+eMBErrorCode eMBTCPReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame,
+ uint16_t *pusLength);
+eMBErrorCode eMBTCPSend(uint8_t _unused, const uint8_t *pucFrame,
+ uint16_t usLength);
#ifdef __cplusplus
PR_END_EXTERN_C
#endif
-#endif
+#endif /* __APPS_MODBUS_TCP_MBTCP_H */