Home
last modified time | relevance | path

Searched refs:sys_be16_to_cpu (Results 1 – 25 of 54) sorted by relevance

123

/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dsmp_stub.c61 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr()
62 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr()
79 res_hdr.nh_len = sys_be16_to_cpu(res_hdr.nh_len); in smp_uart_tx_pkt()
80 res_hdr.nh_group = sys_be16_to_cpu(res_hdr.nh_group); in smp_uart_tx_pkt()
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050.c133 drv_data->accel_x = sys_be16_to_cpu(buf[0]); in mpu6050_sample_fetch()
134 drv_data->accel_y = sys_be16_to_cpu(buf[1]); in mpu6050_sample_fetch()
135 drv_data->accel_z = sys_be16_to_cpu(buf[2]); in mpu6050_sample_fetch()
136 drv_data->temp = sys_be16_to_cpu(buf[3]); in mpu6050_sample_fetch()
137 drv_data->gyro_x = sys_be16_to_cpu(buf[4]); in mpu6050_sample_fetch()
138 drv_data->gyro_y = sys_be16_to_cpu(buf[5]); in mpu6050_sample_fetch()
139 drv_data->gyro_z = sys_be16_to_cpu(buf[6]); in mpu6050_sample_fetch()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_client/src/
Dsmp_transport_stub.c23 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr()
24 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr()
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c205 drv_data->accel_x = sys_be16_to_cpu(buf[0]); in mpu9250_sample_fetch()
206 drv_data->accel_y = sys_be16_to_cpu(buf[1]); in mpu9250_sample_fetch()
207 drv_data->accel_z = sys_be16_to_cpu(buf[2]); in mpu9250_sample_fetch()
208 drv_data->temp = sys_be16_to_cpu(buf[3]); in mpu9250_sample_fetch()
209 drv_data->gyro_x = sys_be16_to_cpu(buf[4]); in mpu9250_sample_fetch()
210 drv_data->gyro_y = sys_be16_to_cpu(buf[5]); in mpu9250_sample_fetch()
211 drv_data->gyro_z = sys_be16_to_cpu(buf[6]); in mpu9250_sample_fetch()
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l.c74 drv_data->x_sample = sys_be16_to_cpu(buf[0]); in hmc5883l_sample_fetch()
75 drv_data->z_sample = sys_be16_to_cpu(buf[1]); in hmc5883l_sample_fetch()
76 drv_data->y_sample = sys_be16_to_cpu(buf[2]); in hmc5883l_sample_fetch()
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/
DiAQcore.c48 drv_data->co2 = sys_be16_to_cpu(buf.co2_pred); in iaqcore_sample_fetch()
49 drv_data->voc = sys_be16_to_cpu(buf.voc); in iaqcore_sample_fetch()
/Zephyr-latest/drivers/sensor/ams/ccs811/
Dccs811.c99 ptr->fw_boot_version = sys_be16_to_cpu(ptr->fw_boot_version); in ccs811_configver_fetch()
107 ptr->fw_app_version = sys_be16_to_cpu(ptr->fw_app_version); in ccs811_configver_fetch()
241 rp->co2 = sys_be16_to_cpu(buf[0]); in ccs811_sample_fetch()
242 rp->voc = sys_be16_to_cpu(buf[1]); in ccs811_sample_fetch()
246 rp->raw = sys_be16_to_cpu(buf[3]); in ccs811_sample_fetch()
524 fw_ver = sys_be16_to_cpu(fw_ver); in ccs811_init()
/Zephyr-latest/drivers/sensor/silabs/si7006/
Dsi7006.c50 si_data->humidity = sys_be16_to_cpu(hum) & ~3; in si7006_get_humidity()
78 si_data->temperature = sys_be16_to_cpu(temp) & ~3; in si7006_get_temperature()
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/src/
Dclient.c279 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr()
280 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr()
313 smp_header.nh_op, sys_be16_to_cpu(smp_header.nh_group), smp_header.nh_id, in smp_client_send_cmd()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_reassembly.c41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect()
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc_scsi.c550 ret = MIN(sys_be16_to_cpu(cmd->allocation_length), in SCSI_CMD_HANDLER()
557 ret = MIN(sys_be16_to_cpu(cmd->allocation_length), in SCSI_CMD_HANDLER()
661 length = MIN(sys_be16_to_cpu(cmd->allocation_length), sizeof(r)); in SCSI_CMD_HANDLER()
727 uint16_t transfer_length = sys_be16_to_cpu(cmd->transfer_length); in SCSI_CMD_HANDLER()
781 uint16_t transfer_length = sys_be16_to_cpu(cmd->transfer_length); in SCSI_CMD_HANDLER()
820 length = MIN(sys_be16_to_cpu(cmd->allocation_length), sizeof(r)); in SCSI_CMD_HANDLER()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a.c75 if (sys_be16_to_cpu(rx_packet->start) == R502A_STARTCODE) { in r502a_validate_rx_packet()
76 LOG_DBG("startcode matched 0x%X", sys_be16_to_cpu(rx_packet->start)); in r502a_validate_rx_packet()
78 LOG_ERR("startcode didn't match 0x%X", sys_be16_to_cpu(rx_packet->start)); in r502a_validate_rx_packet()
104 cks_start_idx = sys_be16_to_cpu(rx_packet->len) - R502A_CHECKSUM_LEN; in r502a_validate_rx_packet()
108 calc_cks += rx_packet->pid + (sys_be16_to_cpu(rx_packet->len) >> 8) + in r502a_validate_rx_packet()
109 (sys_be16_to_cpu(rx_packet->len) & 0xFF); in r502a_validate_rx_packet()
889 sys_be16_to_cpu(rx_packet.len) - R502A_CHECKSUM_LEN); in fps_upload_char_buf()
890 idx += sys_be16_to_cpu(rx_packet.len) - R502A_CHECKSUM_LEN; in fps_upload_char_buf()
/Zephyr-latest/drivers/sensor/nct75/
Dnct75.c62 raw_value = arithmetic_shift_right(sys_be16_to_cpu(read_buffer), 4); in nct75_sample_fetch()
/Zephyr-latest/drivers/input/
Dinput_cst816s.c141 col = sys_be16_to_cpu(x) & 0x0fff; in cst816s_process()
142 row = sys_be16_to_cpu(y) & 0x0fff; in cst816s_process()
/Zephyr-latest/drivers/sensor/maxim/max31790/
Dmax31790_fan_speed.c38 tach_count = sys_be16_to_cpu(tach_count); in max31790_fan_speed_sample_fetch()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607_spi.c88 *val = sys_be16_to_cpu(rx.prom_value); in ms5607_spi_read_prom()
/Zephyr-latest/drivers/mfd/
Dmfd_ad559x_spi.c71 *val = sys_be16_to_cpu(data); in mfd_ad559x_spi_read_reg()
/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007.c30 *val = sys_be16_to_cpu(*val); in tmp007_reg_read()
/Zephyr-latest/drivers/sensor/jedec/jc42/
Djc42.c30 *val = sys_be16_to_cpu(*val); in jc42_reg_read()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket.c88 socket->port = sys_be16_to_cpu(net_sin(addr)->sin_port); in __eswifi_bind()
243 (uint16_t)sys_be16_to_cpu(net_sin(addr)->sin_port)); in __eswifi_off_start_client()
/Zephyr-latest/include/zephyr/sys/
Dbyteorder.h231 #define sys_be16_to_cpu(val) BSWAP_16(val) macro
277 #define sys_be16_to_cpu(val) (val) macro
/Zephyr-latest/subsys/mgmt/mcumgr/smp/src/
Dsmp.c101 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr()
102 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr()
/Zephyr-latest/subsys/bluetooth/host/classic/
Davctp.c112 LOG_ERR("unsupported AVCTP PID received: 0x%04x", sys_be16_to_cpu(hdr->pid)); in avctp_l2cap_recv()
/Zephyr-latest/drivers/sensor/rohm/bh1750/
Dbh1750.c61 *val = sys_be16_to_cpu(*val); in bh1750_opcode_read()
/Zephyr-latest/drivers/sensor/st/vl53l1x/
Dvl53l1_platform.c110 *pdata = sys_be16_to_cpu(*pdata); in VL53L1_RdWord()

123