Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/can/
Dcan_mcp251xfd.c63 uint16_t spi_cmd; in mcp251xfd_read_reg() local
66 spi_cmd = sys_cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_READ | addr); in mcp251xfd_read_reg()
67 memcpy(&spi_data->header[1], &spi_cmd, sizeof(spi_cmd)); in mcp251xfd_read_reg()
92 uint16_t crc_in, crc, spi_cmd; in mcp251xfd_read_crc() local
107 spi_cmd = sys_cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_READ_CRC | addr); in mcp251xfd_read_crc()
108 memcpy(&spi_data->header[0], &spi_cmd, sizeof(spi_cmd)); in mcp251xfd_read_crc()
148 uint16_t spi_cmd; in mcp251xfd_write() local
153 spi_cmd = sys_cpu_to_be16(MCP251XFD_SPI_INSTRUCTION_WRITE | addr); in mcp251xfd_write()
154 memcpy(&spi_data->header[1], &spi_cmd, sizeof(spi_cmd)); in mcp251xfd_write()