Lines Matching refs:reg_buffer
292 eMBErrorCode mbc_reg_input_slave_cb(UCHAR * reg_buffer, USHORT address, USHORT n_regs) in mbc_reg_input_slave_cb() argument
296 MB_SLAVE_CHECK((reg_buffer != NULL), in mbc_reg_input_slave_cb()
312 _XFER_2_RD(reg_buffer, input_buffer); in mbc_reg_input_slave_cb()
329 eMBErrorCode mbc_reg_holding_slave_cb(UCHAR * reg_buffer, USHORT address, USHORT n_regs, eMBRegiste… in mbc_reg_holding_slave_cb() argument
333 MB_SLAVE_CHECK((reg_buffer != NULL), in mbc_reg_holding_slave_cb()
350 _XFER_2_RD(reg_buffer, holding_buffer); in mbc_reg_holding_slave_cb()
362 _XFER_2_WR(holding_buffer, reg_buffer); in mbc_reg_holding_slave_cb()
381 eMBErrorCode mbc_reg_coils_slave_cb(UCHAR* reg_buffer, USHORT address, USHORT n_coils, eMBRegisterM… in mbc_reg_coils_slave_cb() argument
385 MB_SLAVE_CHECK((reg_buffer != NULL), in mbc_reg_coils_slave_cb()
401 xMBUtilSetBits(reg_buffer, reg_index - (address - reg_coils_start), 1, result); in mbc_reg_coils_slave_cb()
412 uint8_t result = xMBUtilGetBits(reg_buffer, in mbc_reg_coils_slave_cb()
432 eMBErrorCode mbc_reg_discrete_slave_cb(UCHAR* reg_buffer, USHORT address, USHORT n_discrete) in mbc_reg_discrete_slave_cb() argument
436 MB_SLAVE_CHECK((reg_buffer != NULL), in mbc_reg_discrete_slave_cb()
455 *reg_buffer++ = xMBUtilGetBits(&discrete_input_buf[reg_index++], reg_bit_index, 8); in mbc_reg_discrete_slave_cb()
458 reg_buffer--; in mbc_reg_discrete_slave_cb()
462 *reg_buffer = *reg_buffer << (8 - n_discrete); in mbc_reg_discrete_slave_cb()
463 *reg_buffer = *reg_buffer >> (8 - n_discrete); in mbc_reg_discrete_slave_cb()