13#ifndef INC_PETITMODBUSUSERPORT_H_
14#define INC_PETITMODBUSUSERPORT_H_
17#include <SI_EFM8BB1_Register_Enums.h>
21#define NUMBER_OF_COILS ( 1 )
22#define NUMBER_OF_DISCRETE_INPUTS ( 0 )
26#define NUMBER_OF_PETITREGISTERS ( eMMW_HR_NUM )
27#define NUMBER_OF_INPUT_PETITREGISTERS ( 1 )
28#define NUMBER_OF_REGISTERS_IN_BUFFER ( 3 )
30#define PETITMODBUS_READ_COILS_ENABLED ( 1 )
31#define PETITMODBUS_READ_HOLDING_REGISTERS_ENABLED ( 1 )
32#define PETITMODBUS_WRITE_SINGLE_COIL_ENABLED ( 1 )
33#define PETITMODBUS_WRITE_SINGLE_REGISTER_ENABLED ( 1 )
34#define PETITMODBUS_WRITE_MULTIPLE_COILS_ENABLED ( 1 )
35#define PETITMODBUS_WRITE_MULTIPLE_REGISTERS_ENABLED ( 1 )
36#define PETITMODBUS_READ_INPUT_REGISTERS_ENABLED ( 1 )
40#define PETITMODBUS_PROCESS_POSITION ( 0 )
52#define PETIT_USER_LED PETIT_USER_LED_DEF
60#define PETIT_CRC PETIT_CRC_EXTERNAL
62#define PETIT_COIL PETIT_EXTERNAL
64#define PETIT_REG PETIT_EXTERNAL
66#define PETIT_INPUT_REG PETIT_INTERNAL
70#define PETIT_CODE code
76#define pu16_t uint16_t
78#define PetitPortCRC16Calc(a, d) KirisakiCRC16Calc(a, d)
84#define PetitLedSuc() nMB_LED = 0;
85#define PetitLedErrFail()
86#define PetitLedCrcFail()
87#define PetitLedOff() nMB_LED = 1;
uint8_t PETITMODBUS_SLAVE_ADDRESS
uint8_t PETITMODBUS_DLY_TOP