Home
last modified time | relevance | path

Searched refs:sys_get_be16 (Results 1 – 25 of 72) sorted by relevance

123

/Zephyr-latest/subsys/modbus/
Dmodbus_server.c130 coil_addr = sys_get_be16(&ctx->rx_adu.data[0]); in mbs_fc01_coil_read()
131 coil_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc01_coil_read()
229 di_addr = sys_get_be16(&ctx->rx_adu.data[0]); in mbs_fc02_di_read()
230 di_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc02_di_read()
322 reg_addr = sys_get_be16(&ctx->rx_adu.data[0]); in mbs_fc03_hreg_read()
323 reg_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc03_hreg_read()
434 reg_addr = sys_get_be16(&ctx->rx_adu.data[0]); in mbs_fc04_inreg_read()
435 reg_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc04_inreg_read()
550 coil_addr = sys_get_be16(&ctx->rx_adu.data[0]); in mbs_fc05_coil_write()
551 coil_val = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc05_coil_write()
[all …]
Dmodbus_client.c66 req_qty = sys_get_be16(&ctx->tx_adu.data[2]); in mbc_validate_fc03fp_response()
103 req_qty = sys_get_be16(&ctx->tx_adu.data[2]); in mbc_validate_rd_response()
104 req_addr = sys_get_be16(&ctx->tx_adu.data[0]); in mbc_validate_rd_response()
141 data_p16[i] = sys_get_be16(resp_data); in mbc_validate_rd_response()
171 req_sfunc = sys_get_be16(&ctx->tx_adu.data[0]); in mbc_validate_fc08_response()
172 req_data = sys_get_be16(&ctx->tx_adu.data[2]); in mbc_validate_fc08_response()
173 resp_sfunc = sys_get_be16(&ctx->rx_adu.data[0]); in mbc_validate_fc08_response()
174 resp_data = sys_get_be16(&ctx->rx_adu.data[2]); in mbc_validate_fc08_response()
219 req_addr = sys_get_be16(&ctx->tx_adu.data[0]); in mbc_validate_wr_response()
220 req_value = sys_get_be16(&ctx->tx_adu.data[2]); in mbc_validate_wr_response()
[all …]
Dmodbus_raw.c92 adu->trans_id = sys_get_be16(&header[0]); in modbus_raw_get_header()
93 adu->proto_id = sys_get_be16(&header[2]); in modbus_raw_get_header()
94 adu->length = MIN(sys_get_be16(&header[4]), CONFIG_MODBUS_BUFFER_SIZE); in modbus_raw_get_header()
/Zephyr-latest/drivers/sensor/sensirion/scd4x/
Dscd4x.c60 ret = scd4x_calc_crc(sys_get_be16(&rx_buf[i * 3])); in scd4x_read_reg()
116 uint16_t word = sys_get_be16(rx_data); in scd4x_data_ready()
143 data->co2_sample = sys_get_be16(rx_data); in scd4x_read_sample()
144 data->temp_sample = sys_get_be16(&rx_data[3]); in scd4x_read_sample()
145 data->humi_sample = sys_get_be16(&rx_data[6]); in scd4x_read_sample()
317 temp = sys_get_be16(rx_buf) * SCD4X_MAX_TEMP; in scd4x_get_temperature_offset()
341 val->val1 = sys_get_be16(rx_buf); in scd4x_get_sensor_altitude()
364 val->val1 = sys_get_be16(rx_buf); in scd4x_get_ambient_pressure()
387 val->val1 = sys_get_be16(rx_buf); in scd4x_get_automatic_calib_enable()
410 val->val1 = sys_get_be16(rx_buf); in scd4x_get_self_calib_initial_period()
[all …]
/Zephyr-latest/subsys/net/lib/tftp/
Dtftp_client.c106 uint16_t opcode = sys_get_be16(client->tftp_buf); in send_data()
107 uint16_t blockno = sys_get_be16(client->tftp_buf + 2); in send_data()
273 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_get()
274 uint16_t block_no = sys_get_be16(client->tftp_buf + 2); in tftp_get()
397 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_put()
398 uint16_t block_no = sys_get_be16(client->tftp_buf + 2); in tftp_put()
/Zephyr-latest/include/zephyr/sys/
Dbyteorder.h501 static inline uint16_t sys_get_be16(const uint8_t src[2]) in sys_get_be16() function
518 return ((uint32_t)src[0] << 16) | sys_get_be16(&src[1]); in sys_get_be24()
533 return ((uint32_t)sys_get_be16(&src[0]) << 16) | sys_get_be16(&src[2]); in sys_get_be32()
563 return ((uint64_t)sys_get_be32(&src[0]) << 16) | sys_get_be16(&src[4]); in sys_get_be48()
/Zephyr-latest/drivers/spi/
Dspi_litex_common.h42 *txd = sys_get_be16(tx_buf); in litex_spi_tx_put()
/Zephyr-latest/drivers/sensor/renesas/hs300x/
Dhs300x.c47 *rh_sample = sys_get_be16(rx_buf); in hs300x_read_sample()
48 *t_sample = sys_get_be16(&rx_buf[2]); in hs300x_read_sample()
/Zephyr-latest/drivers/sensor/renesas/hs400x/
Dhs400x.c44 *rh_sample = sys_get_be16(rx_buf); in hs400x_read_sample()
45 *t_sample = sys_get_be16(&rx_buf[2]); in hs400x_read_sample()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina23x_common.c36 *val = sys_get_be16(data); in ina23x_reg_read_16()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a.c106 recv_cks = sys_get_be16(&rx_packet->data[cks_start_idx]); in r502a_validate_rx_packet()
169 drv_data->pkt_len = sys_get_be16( in uart_cb_handler()
251 val->status_reg = sys_get_be16( in r502a_read_sys_param()
254 val->system_id = sys_get_be16( in r502a_read_sys_param()
257 val->lib_size = sys_get_be16( in r502a_read_sys_param()
260 val->sec_level = sys_get_be16( in r502a_read_sys_param()
266 offset = sys_get_be16( in r502a_read_sys_param()
270 val->baud = sys_get_be16( in r502a_read_sys_param()
369 drv_data->template_count = sys_get_be16(&rx_packet.data[1]); in fps_get_template_count()
691 val->val1 = sys_get_be16(&rx_packet.data[1]); in fps_search()
[all …]
/Zephyr-latest/drivers/sensor/tdk/icp10125/
Dicp10125.c175 data->sensor_constants[i] = sys_get_be16(sensor_data.data); in icp10125_read_otp()
250 data->raw_ambient_temp = sys_get_be16(sensor_data[0].data); in icp10125_sample_fetch()
262 data->raw_ambient_temp = sys_get_be16(sensor_data[2].data); in icp10125_sample_fetch()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607_i2c.c47 *val = sys_get_be16(valb); in ms5607_i2c_read_prom()
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd.c112 t_sample = sys_get_be16(&rx_buf[0]); in sht3xd_sample_fetch()
118 rh_sample = sys_get_be16(&rx_buf[3]); in sht3xd_sample_fetch()
/Zephyr-latest/drivers/sensor/sensirion/sht4x/
Dsht4x.c54 *t_sample = sys_get_be16(rx_buf); in sht4x_read_sample()
60 *rh_sample = sys_get_be16(&rx_buf[3]); in sht4x_read_sample()
/Zephyr-latest/drivers/sensor/infineon/dps310/
Ddps310.c281 comp->c01 = (int16_t) sys_get_be16(&raw_coef[8]); in dps310_calib_coeff_creation()
282 comp->c11 = (int16_t) sys_get_be16(&raw_coef[10]); in dps310_calib_coeff_creation()
283 comp->c20 = (int16_t) sys_get_be16(&raw_coef[12]); in dps310_calib_coeff_creation()
284 comp->c21 = (int16_t) sys_get_be16(&raw_coef[14]); in dps310_calib_coeff_creation()
285 comp->c30 = (int16_t) sys_get_be16(&raw_coef[16]); in dps310_calib_coeff_creation()
/Zephyr-latest/drivers/mfd/
Dmfd_ad559x_i2c.c49 *val = sys_get_be16(buf); in mfd_ad559x_i2c_read_reg()
/Zephyr-latest/drivers/ethernet/
Deth_w5500.c185 offset = sys_get_be16(off); in w5500_tx()
222 rx_buf_len = sys_get_be16(tmp); in w5500_rx()
229 off = sys_get_be16(tmp); in w5500_rx()
232 rx_len = sys_get_be16(header) - 2; in w5500_rx()
585 if (sys_get_be16(rtr) != RTR_DEFAULT) { in w5500_init()
/Zephyr-latest/drivers/adc/
Dadc_ltc2451.c70 value_buf[0] = sys_get_be16(rd_buf); in ltc2451_read_latest_conversion()
Dadc_ads131m02.c300 enable = sys_get_be16(read_data); in ads131m02_setup()
447 int_status = sys_get_be16(&rx_buf[0]); in ads131m02_read_sample()
556 if (sys_get_be16(rx_buf) != ADS131M02_RESET_RSP) { in ads131m02_device_reset()
632 temp = sys_get_be16(buf); in ads131m02_set_power_mode()
/Zephyr-latest/drivers/sensor/sensirion/sgp40/
Dsgp40.c120 raw_sample = sys_get_be16(rx_buf); in sgp40_selftest()
161 raw_sample = sys_get_be16(rx_buf); in sgp40_sample_fetch()
/Zephyr-latest/drivers/sensor/maxim/max6675/
Dmax6675.c57 data->sample = sys_get_be16(buf_rx); in max6675_sample_fetch()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c741 data->accel_x = (int16_t)sys_get_be16(&buffer[0]); in icm42670_sample_fetch_accel()
742 data->accel_y = (int16_t)sys_get_be16(&buffer[2]); in icm42670_sample_fetch_accel()
743 data->accel_z = (int16_t)sys_get_be16(&buffer[4]); in icm42670_sample_fetch_accel()
759 data->gyro_x = (int16_t)sys_get_be16(&buffer[0]); in icm42670_sample_fetch_gyro()
760 data->gyro_y = (int16_t)sys_get_be16(&buffer[2]); in icm42670_sample_fetch_gyro()
761 data->gyro_z = (int16_t)sys_get_be16(&buffer[4]); in icm42670_sample_fetch_gyro()
777 data->temp = (int16_t)sys_get_be16(&buffer[0]); in icm42670_sample_fetch_temp()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c43 data->temp_sample = sys_get_be16(rx_buf); in tcn75a_sample_fetch()
/Zephyr-latest/drivers/sensor/mhz19b/
Dmhz19b.c137 data->data = sys_get_be16(&data->rd_data[2]); in mhz19b_poll_data()
140 data->data = sys_get_be16(&data->rd_data[4]); in mhz19b_poll_data()

123