Home
last modified time | relevance | path

Searched refs:BYTE_1 (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_it8xxx2.c21 #define BYTE_1(x) (uint8_t)(((x) >> 8) & 0xFF) macro
245 data->cmdq_data.data_length_hb = BYTE_1(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx()
248 data->cmdq_data.data_addr_hb = BYTE_1(mem_address); in spi_it8xxx2_tx()
268 data->cmdq_data.data_length_hb = BYTE_1(ctx->rx_len); in spi_it8xxx2_rx()
292 data->cmdq_data.data_length_hb = BYTE_1(ctx->rx_len); in spi_it8xxx2_tx_rx()
303 data->cmdq_data.data_length_hb = BYTE_1(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx_rx()
307 data->cmdq_data.data_addr_hb = BYTE_1(mem_address); in spi_it8xxx2_tx_rx()
356 sys_write8(BYTE_1(cmd_address), cfg->base + SPI06_CH0_CMD_ADDR_HB); in spi_it8xxx2_next_xfer()
361 sys_write8(BYTE_1(mem_address), cfg->base + SPI0F_CH0_WR_MEM_ADDR_HB); in spi_it8xxx2_next_xfer()
366 sys_write8(BYTE_1(cmd_address), cfg->base + SPI13_CH1_CMD_ADDR_HB); in spi_it8xxx2_next_xfer()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_sc.c253 pd->sc.pd_client_uid[1] = BYTE_1(pd->id.vendor_code); in osdp_sc_setup()
255 pd->sc.pd_client_uid[3] = BYTE_1(pd->id.version); in osdp_sc_setup()
257 pd->sc.pd_client_uid[5] = BYTE_1(pd->id.serial_number); in osdp_sc_setup()
Dosdp_phy.c190 pkt->len_msb = BYTE_1(len + 2); in osdp_phy_packet_finalize()
228 pkt->len_msb = BYTE_1(len + 2 + 4); in osdp_phy_packet_finalize()
244 buf[len + 1] = BYTE_1(crc16); in osdp_phy_packet_finalize()
Dosdp_pd.c601 buf[len++] = BYTE_1(pd->id.vendor_code); in pd_build_reply()
608 buf[len++] = BYTE_1(pd->id.serial_number); in pd_build_reply()
614 buf[len++] = BYTE_1(pd->id.firmware_version); in pd_build_reply()
678 buf[len++] = BYTE_1(event->cardread.length); in pd_build_reply()
715 buf[len++] = BYTE_1(cmd->comset.baud_rate); in pd_build_reply()
Dosdp_common.h28 #define BYTE_1(x) (uint8_t)(((x) >> 8) & 0xFF) macro
Dosdp_cp.c202 buf[len++] = BYTE_1(cmd->output.timer_count); in cp_build_command()
219 buf[len++] = BYTE_1(cmd->led.temporary.timer_count); in cp_build_command()
262 buf[len++] = BYTE_1(cmd->comset.baud_rate); in cp_build_command()