123456789101112131415161718192021222324252627282930313233343536 |
- // mbmstapp.h :
- //
- #if !defined(AGD_MBMSTAPP_H__DC9BAC0C_4500_4FB9_823E_B06F03EDB046__INCLUDED_)
- #define AGD_MBMSTAPP_H__DC9BAC0C_4500_4FB9_823E_B06F03EDB046__INCLUDED_
- #include <stdbool.h>
- #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_RTU_UART_INT_PRIORITY (1 << 5)
- #define MODBUS_RTU_BAUDRATE 19200
- #define MODBUS_RTU_DATABITS 8
- #define MODBUS_RTU_STOPBITS 1
- #define MODBUS_RTU_PARITY P_Even
- #define MODBUS_RTU_MASTER_RX_TIMEOUT_US 500000 // slave to master response timeout in microseconds
- /////////////////////////////////////////////////////////////////////////////
- bool GfaInitModbusMasterApp(void);
- void GfaDoModbusMasterApp(void);
- /////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- }
- #endif // __cplusplus
- #endif // !defined(AGD_MBMSTAPP_H__DC9BAC0C_4500_4FB9_823E_B06F03EDB046__INCLUDED_)
|