Home
last modified time | relevance | path

Searched refs:HOLD_OFFSET (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-3.5.0/examples/protocols/modbus/serial/mb_slave/main/
Dslave.c23 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) >> 1)) macro
29 #define MB_REG_HOLDING_START_AREA0 (HOLD_OFFSET(holding_data0))
30 #define MB_REG_HOLDING_START_AREA1 (HOLD_OFFSET(holding_data4))
122 reg_area.size = (size_t)(HOLD_OFFSET(holding_data4) - HOLD_OFFSET(test_regs)); in app_main()
/hal_espressif-3.5.0/examples/protocols/modbus/serial/mb_master/main/
Dmaster.c42 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) + 1)) macro
87HOLD_OFFSET(holding_data0), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
91HOLD_OFFSET(holding_data1), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
95HOLD_OFFSET(holding_data2), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
97HOLD_OFFSET(test_regs), PARAM_TYPE_ASCII, 116, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/mb_tcp_slave/main/
Dtcp_slave.c30 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) >> 1)) macro
36 #define MB_REG_HOLDING_START_AREA0 (HOLD_OFFSET(holding_data0))
37 #define MB_REG_HOLDING_START_AREA1 (HOLD_OFFSET(holding_data4))
/hal_espressif-3.5.0/examples/protocols/modbus/tcp/mb_tcp_master/main/
Dtcp_master.c43 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) + 1)) macro
103HOLD_OFFSET(holding_data0), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
107HOLD_OFFSET(holding_data1), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
111HOLD_OFFSET(holding_data2), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },