Lines Matching refs:fc
31 uint8_t fc) in mbc_validate_response_fc() argument
33 uint8_t resp_fc = ctx->rx_adu.fc; in mbc_validate_response_fc()
42 if (fc != (resp_fc & excep_mask)) { in mbc_validate_response_fc()
86 uint8_t fc, in mbc_validate_rd_response() argument
111 switch (fc) { in mbc_validate_rd_response()
150 LOG_ERR("Validation not implemented for FC 0x%02x", fc); in mbc_validate_rd_response()
211 uint8_t fc) in mbc_validate_wr_response() argument
224 switch (fc) { in mbc_validate_wr_response()
237 LOG_ERR("Validation not implemented for FC 0x%02x", fc); in mbc_validate_wr_response()
245 uint8_t fc, void *data) in mbc_send_cmd() argument
250 ctx->tx_adu.fc = fc; in mbc_send_cmd()
257 err = mbc_validate_response_fc(ctx, unit_id, fc); in mbc_send_cmd()
262 LOG_INF("Modbus FC %u, error code %u", fc, err); in mbc_send_cmd()
266 switch (fc) { in mbc_send_cmd()
271 err = mbc_validate_rd_response(ctx, unit_id, fc, data); in mbc_send_cmd()
282 err = mbc_validate_wr_response(ctx, unit_id, fc); in mbc_send_cmd()
286 LOG_ERR("FC 0x%02x not implemented", fc); in mbc_send_cmd()