Lines Matching refs:operation
61 static inline nrf_spi_mode_t get_nrf_spi_mode(uint16_t operation) in get_nrf_spi_mode() argument
63 if (SPI_MODE_GET(operation) & SPI_MODE_CPOL) { in get_nrf_spi_mode()
64 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spi_mode()
70 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spi_mode()
78 static inline nrf_spi_bit_order_t get_nrf_spi_bit_order(uint16_t operation) in get_nrf_spi_bit_order() argument
80 if (operation & SPI_TRANSFER_LSB) { in get_nrf_spi_bit_order()
101 if (spi_cfg->operation & SPI_HALF_DUPLEX) { in configure()
106 if (SPI_OP_MODE_GET(spi_cfg->operation) != SPI_OP_MODE_MASTER) { in configure()
111 if (spi_cfg->operation & SPI_MODE_LOOP) { in configure()
117 (spi_cfg->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in configure()
122 if (SPI_WORD_SIZE_GET(spi_cfg->operation) != 8) { in configure()
135 config.mode = get_nrf_spi_mode(spi_cfg->operation); in configure()
136 config.bit_order = get_nrf_spi_bit_order(spi_cfg->operation); in configure()
139 spi_cfg->operation & SPI_MODE_CPOL ? 1 : 0); in configure()