12345678910111213141516171819202122232425262728293031323334353637 |
- // mbapp.h :
- //
- #if !defined(AGD_MBAPP_H__45B5FF25_C1D8_4196_97EF_0101C487A999__INCLUDED_)
- #define AGD_MBAPP_H__45B5FF25_C1D8_4196_97EF_0101C487A999__INCLUDED_
- #ifdef __cplusplus
- extern "C" {
- #endif // __cplusplus
- /////////////////////////////////////////////////////////////////////////////
- // mbapp.h - Declarations:
- #define HW_PLATFORM_OLS1V 1
- #define HW_PLATFORM_EAV1V 2
- #define HW_PLATFORM HW_PLATFORM_OLS1V
- #define MODBUS_SLAVE_ID 100
- #define MODBUS_WORD_REGISTER_COUNT 50
- #define MODBUS_RTU_UART_INT_PRIORITY (1 << 5)
- #define MODBUS_RTU_BAUDRATE 9600
- #define MODBUS_RTU_DATABITS 8
- #define MODBUS_RTU_STOPBITS 1
- #define MODBUS_RTU_PARITY P_Even
- /////////////////////////////////////////////////////////////////////////////
- bool GfaInitModbusSlaveApp(void);
- void GfaDoModbusSlaveApp(void);
- /////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #endif // !defined(AGD_MBAPP_H__45B5FF25_C1D8_4196_97EF_0101C487A999__INCLUDED_)
|