Home
last modified time | relevance | path

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

/hal_espressif-latest/components/driver/spi/sdspi/
Dsdspi_transaction.c22 static uint8_t sdspi_msg_crc7(sdspi_hw_cmd_t* hw_cmd) in sdspi_msg_crc7() argument
25 sizeof(hw_cmd->arguments); /* can't take address of bit fields */ in sdspi_msg_crc7()
26 return sdspi_crc7((const uint8_t *)hw_cmd, bytes_to_crc); in sdspi_msg_crc7()
29 void make_hw_cmd(uint32_t opcode, uint32_t arg, int timeout_ms, sdspi_hw_cmd_t *hw_cmd) in make_hw_cmd() argument
31 hw_cmd->start_bit = 0; in make_hw_cmd()
32 hw_cmd->transmission_bit = 1; in make_hw_cmd()
33 hw_cmd->cmd_index = opcode; in make_hw_cmd()
34 hw_cmd->stop_bit = 1; in make_hw_cmd()
35 hw_cmd->r1 = 0xff; in make_hw_cmd()
36 memset(hw_cmd->response, 0xff, sizeof(hw_cmd->response)); in make_hw_cmd()
[all …]
Dsdspi_private.h99 void make_hw_cmd(uint32_t opcode, uint32_t arg, int timeout_ms, sdspi_hw_cmd_t *hw_cmd);