Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/spi/
Dspi_it8xxx2.c20 #define BYTE_0(x) (uint8_t)(((x) >> 0) & 0xFF) macro
244 data->cmdq_data.data_length_lb = BYTE_0(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx()
247 data->cmdq_data.data_addr_lb = BYTE_0(mem_address); in spi_it8xxx2_tx()
267 data->cmdq_data.data_length_lb = BYTE_0(ctx->rx_len); in spi_it8xxx2_rx()
291 data->cmdq_data.data_length_lb = BYTE_0(ctx->rx_len); in spi_it8xxx2_tx_rx()
302 data->cmdq_data.data_length_lb = BYTE_0(ctx->tx_len - SPI_CMDQ_WR_CMD_LEN_MAX); in spi_it8xxx2_tx_rx()
306 data->cmdq_data.data_addr_lb = BYTE_0(mem_address); in spi_it8xxx2_tx_rx()
355 sys_write8(BYTE_0(cmd_address), cfg->base + SPI05_CH0_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
360 sys_write8(BYTE_0(mem_address), cfg->base + SPI0E_CH0_WR_MEM_ADDR_LB); in spi_it8xxx2_next_xfer()
365 sys_write8(BYTE_0(cmd_address), cfg->base + SPI12_CH1_CMD_ADDR_LB); in spi_it8xxx2_next_xfer()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_sc.c252 pd->sc.pd_client_uid[0] = BYTE_0(pd->id.vendor_code); in osdp_sc_setup()
254 pd->sc.pd_client_uid[2] = BYTE_0(pd->id.model); in osdp_sc_setup()
256 pd->sc.pd_client_uid[4] = BYTE_0(pd->id.serial_number); in osdp_sc_setup()
Dosdp_phy.c189 pkt->len_lsb = BYTE_0(len + 2); in osdp_phy_packet_finalize()
227 pkt->len_lsb = BYTE_0(len + 2 + 4); in osdp_phy_packet_finalize()
243 buf[len + 0] = BYTE_0(crc16); in osdp_phy_packet_finalize()
Dosdp_pd.c600 buf[len++] = BYTE_0(pd->id.vendor_code); in pd_build_reply()
607 buf[len++] = BYTE_0(pd->id.serial_number); in pd_build_reply()
677 buf[len++] = BYTE_0(event->cardread.length); in pd_build_reply()
714 buf[len++] = BYTE_0(cmd->comset.baud_rate); in pd_build_reply()
Dosdp_common.h27 #define BYTE_0(x) (uint8_t)(((x) >> 0) & 0xFF) macro
Dosdp_cp.c201 buf[len++] = BYTE_0(cmd->output.timer_count); in cp_build_command()
218 buf[len++] = BYTE_0(cmd->led.temporary.timer_count); in cp_build_command()
261 buf[len++] = BYTE_0(cmd->comset.baud_rate); in cp_build_command()