Searched refs:HOLD_OFFSET (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.5.0/examples/protocols/modbus/serial/mb_slave/main/ |
D | slave.c | 23 #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/ |
D | master.c | 42 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) + 1)) macro 87 …HOLD_OFFSET(holding_data0), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER }, 91 …HOLD_OFFSET(holding_data1), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER }, 95 …HOLD_OFFSET(holding_data2), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER }, 97 … HOLD_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/ |
D | tcp_slave.c | 30 #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/ |
D | tcp_master.c | 43 #define HOLD_OFFSET(field) ((uint16_t)(offsetof(holding_reg_params_t, field) + 1)) macro 103 …HOLD_OFFSET(holding_data0), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER }, 107 …HOLD_OFFSET(holding_data1), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER }, 111 …HOLD_OFFSET(holding_data2), PARAM_TYPE_FLOAT, 4, OPTS( 0, 100, 1 ), PAR_PERMS_READ_WRITE_TRIGGER },
|