Home
last modified time | relevance | path

Searched refs:sys_put_be16 (Results 1 – 25 of 63) sorted by relevance

123

/Zephyr-latest/subsys/modbus/
Dmodbus_client.c309 sys_put_be16(start_addr, &ctx->tx_adu.data[0]); in modbus_read_coils()
310 sys_put_be16(num_coils, &ctx->tx_adu.data[2]); in modbus_read_coils()
334 sys_put_be16(start_addr, &ctx->tx_adu.data[0]); in modbus_read_dinputs()
335 sys_put_be16(num_di, &ctx->tx_adu.data[2]); in modbus_read_dinputs()
359 sys_put_be16(start_addr, &ctx->tx_adu.data[0]); in modbus_read_holding_regs()
360 sys_put_be16(num_regs, &ctx->tx_adu.data[2]); in modbus_read_holding_regs()
386 sys_put_be16(start_addr, &ctx->tx_adu.data[0]); in modbus_read_holding_regs_fp()
388 sys_put_be16(num_regs * 2, &ctx->tx_adu.data[2]); in modbus_read_holding_regs_fp()
413 sys_put_be16(start_addr, &ctx->tx_adu.data[0]); in modbus_read_input_regs()
414 sys_put_be16(num_regs, &ctx->tx_adu.data[2]); in modbus_read_input_regs()
[all …]
Dmodbus_server.c371 sys_put_be16(reg, presp); in mbs_fc03_hreg_read()
483 sys_put_be16(reg, presp); in mbs_fc04_inreg_read()
570 sys_put_be16(coil_addr, &ctx->tx_adu.data[0]); in mbs_fc05_coil_write()
571 sys_put_be16(coil_val, &ctx->tx_adu.data[2]); in mbs_fc05_coil_write()
620 sys_put_be16(reg_addr, &ctx->tx_adu.data[0]); in mbs_fc06_hreg_write()
621 sys_put_be16(reg_val, &ctx->tx_adu.data[2]); in mbs_fc06_hreg_write()
698 sys_put_be16(sfunc, &ctx->tx_adu.data[0]); in mbs_fc08_diagnostics()
699 sys_put_be16(data, &ctx->tx_adu.data[2]); in mbs_fc08_diagnostics()
803 sys_put_be16(coil_addr, &ctx->tx_adu.data[0]); in mbs_fc15_coils_write()
804 sys_put_be16(coil_qty, &ctx->tx_adu.data[2]); in mbs_fc15_coils_write()
[all …]
Dmodbus_raw.c83 sys_put_be16(adu->trans_id, &header[0]); in modbus_raw_put_header()
84 sys_put_be16(adu->proto_id, &header[2]); in modbus_raw_put_header()
85 sys_put_be16(length + MODBUS_ADU_LENGTH_DEVIATION, &header[4]); in modbus_raw_put_header()
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd.c50 sys_put_be16(value, buf); in sht3xd_compute_crc()
59 sys_put_be16(cmd, tx_buf); in sht3xd_write_command()
68 sys_put_be16(cmd, &tx_buf[0]); in sht3xd_write_reg()
69 sys_put_be16(val, &tx_buf[2]); in sht3xd_write_reg()
103 sys_put_be16(SHT3XD_CMD_FETCH, tx_buf); in sht3xd_sample_fetch()
/Zephyr-latest/drivers/sensor/sensirion/sgp40/
Dsgp40.c27 sys_put_be16(value, buf); in sgp40_compute_crc()
38 sys_put_be16(cmd, tx_buf); in sgp40_write_command()
49 sys_put_be16(SGP40_CMD_MEASURE_RAW, tx_buf); in sgp40_start_measurement()
77 sys_put_be16(t_ticks, data->t_param); in sgp40_attr_set()
89 sys_put_be16(rh_ticks, data->rh_param); in sgp40_attr_set()
/Zephyr-latest/subsys/bluetooth/host/
Daes_ccm.c50 sys_put_be16(msg_len, b + 14); in ccm_calculate_X0()
59 sys_put_be16(aad_len, b); in ccm_calculate_X0()
117 sys_put_be16(0x0000, &b[14]); in ccm_auth()
171 sys_put_be16(j + 1, &a_i[14]); in ccm_crypt()
/Zephyr-latest/include/zephyr/sys/
Dbyteorder.h321 static inline void sys_put_be16(uint16_t val, uint8_t dst[2]) in sys_put_be16() function
339 sys_put_be16(val, &dst[1]); in sys_put_be24()
353 sys_put_be16(val >> 16, dst); in sys_put_be32()
354 sys_put_be16(val, &dst[2]); in sys_put_be32()
382 sys_put_be16(val >> 32, dst); in sys_put_be48()
/Zephyr-latest/drivers/spi/
Dspi_litex_common.h60 sys_put_be16(*rxd, rx_buf); in litex_spi_rx_put()
/Zephyr-latest/subsys/net/lib/tftp/
Dtftp_client.c29 sys_put_be16(request, ptr); in make_request()
72 sys_put_be16(DATA_OPCODE, client->tftp_buf); in send_data()
73 sys_put_be16(block_no, client->tftp_buf + 2); in send_data()
152 sys_put_be16(ERROR_OPCODE, client->tftp_buf); in send_err()
153 sys_put_be16(err_code, client->tftp_buf + 2); in send_err()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina23x_common.c46 sys_put_be16(val, &tx_buf[1]); in ina23x_reg_write()
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/
Dmain.c56 sys_put_be16(0x5555, tx_adu->data); in custom_handler()
57 sys_put_be16(0xAAAA, &tx_adu->data[2]); in custom_handler()
58 sys_put_be16(*read_counter, &tx_adu->data[4]); in custom_handler()
/Zephyr-latest/drivers/pwm/
Dpwm_max31790.c220 sys_put_be16(tach_target_count << 5, buffer + 1); in max31790_set_cycles_internal()
227 sys_put_be16(pulse_count << 5, buffer + 1); in max31790_set_cycles_internal()
252 sys_put_be16(pwm_target_duty_cycle << 7, buffer + 1); in max31790_set_cycles_internal()
/Zephyr-latest/drivers/mfd/
Dmfd_ad559x_i2c.c59 sys_put_be16(val, &buf[1]); in mfd_ad559x_i2c_write_reg()
/Zephyr-latest/drivers/sensor/sensirion/shtcx/
Dshtcx.c44 sys_put_be16(value, buf); in shtcx_compute_crc()
75 sys_put_be16(cmd, tx_buf); in shtcx_write_command()
/Zephyr-latest/drivers/adc/
Dadc_ads131m02.c173 sys_put_be16(temp, tx_buf); in ads131m02_reg_read()
187 sys_put_be16(temp, tx_buf); in ads131m02_reg_write()
188 sys_put_be16(write_data, &tx_buf[3]); in ads131m02_reg_write()
548 sys_put_be16(ADS131M02_RESET_CMD, tx_buf); in ads131m02_device_reset()
572 sys_put_be16(cmd, tx_buf); in ads131m02_pm()
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/src/
Dmain.c89 sys_put_be16((uint16_t)(offset & 0xFFFF), start_addr); in run_partial_read()
133 sys_put_be16((uint16_t)(offset & 0xFFFF), start_addr); in run_program_read()
/Zephyr-latest/drivers/display/
Ddisplay_rm67162.c411 sys_put_be16(start, &param[0]); in rm67162_write()
413 sys_put_be16(end, &param[2]); in rm67162_write()
425 sys_put_be16(start, &param[0]); in rm67162_write()
427 sys_put_be16(end, &param[2]); in rm67162_write()
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto.c448 sys_put_be16(ctx->src, &nonce[5]); in create_app_nonce()
449 sys_put_be16(ctx->dst, &nonce[7]); in create_app_nonce()
724 sys_put_be16(0x0001, &salt[14]); in private_beacon_obf()
750 sys_put_be16(0x0005, &salt[14]); in private_beacon_auth()
771 sys_put_be16(0x0000, &salt[14]); in private_beacon_auth()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a.c41 sys_put_be16(check_sum, &tx_packet->buf[data_len + R502A_HEADER_LEN]); in transceive_packet()
550 sys_put_be16(id, &tx_packet.data[2]); in fps_store_model()
590 sys_put_be16(id, &tx_packet.data[1]); in fps_delete_model()
591 sys_put_be16(count + R502A_DELETE_COUNT_OFFSET, &tx_packet.data[3]); in fps_delete_model()
671 sys_put_be16(R02A_LIBRARY_START_IDX, &tx_packet.data[2]); in fps_search()
672 sys_put_be16(R502A_DEFAULT_CAPACITY, &tx_packet.data[4]); in fps_search()
724 sys_put_be16(id, &tx_packet.data[2]); in fps_load_template()
/Zephyr-latest/drivers/sensor/sensirion/scd4x/
Dscd4x.c26 sys_put_be16(value, buf); in scd4x_calc_crc()
37 sys_put_be16(scd4x_cmds[cmd].cmd, tx_buf); in scd4x_write_command()
76 sys_put_be16(scd4x_cmds[cmd].cmd, tx_buf); in scd4x_write_reg()
81 sys_put_be16(data[i], &tx_buf[tx_buf_pos]); in scd4x_write_reg()
/Zephyr-latest/drivers/sensor/jedec/jc42/
Djc42.c43 sys_put_be16(val, &buf[1]); in jc42_reg_write_16bit()
/Zephyr-latest/drivers/sensor/sensirion/sts4x/
Dsts4x.c47 sys_put_be16(value, buf); in sts4x_crc_check()
/Zephyr-latest/tests/drivers/sensor/ina237/src/
Dina237_emul.c122 sys_put_be16(reg_ptr->value, msgs[1].buf); in ina237_emul_transfer_i2c()
/Zephyr-latest/drivers/dac/
Ddac_dacx0501.c87 sys_put_be16(data, write_cmd + 1); in dacx0501_reg_write()
/Zephyr-latest/tests/drivers/sensor/ina230/src/
Dina230_emul.c133 sys_put_be16(reg_ptr->value, msgs[1].buf); in ina230_emul_transfer_i2c()

123