Lines Matching refs:operation
36 static inline nrf_spis_mode_t get_nrf_spis_mode(uint16_t operation) in get_nrf_spis_mode() argument
38 if (SPI_MODE_GET(operation) & SPI_MODE_CPOL) { in get_nrf_spis_mode()
39 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spis_mode()
45 if (SPI_MODE_GET(operation) & SPI_MODE_CPHA) { in get_nrf_spis_mode()
53 static inline nrf_spis_bit_order_t get_nrf_spis_bit_order(uint16_t operation) in get_nrf_spis_bit_order() argument
55 if (operation & SPI_TRANSFER_LSB) { in get_nrf_spis_bit_order()
74 if (spi_cfg->operation & SPI_HALF_DUPLEX) { in configure()
79 if (SPI_OP_MODE_GET(spi_cfg->operation) == SPI_OP_MODE_MASTER) { in configure()
84 if (spi_cfg->operation & SPI_MODE_LOOP) { in configure()
90 (spi_cfg->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in configure()
95 if (SPI_WORD_SIZE_GET(spi_cfg->operation) != 8) { in configure()
108 get_nrf_spis_mode(spi_cfg->operation), in configure()
109 get_nrf_spis_bit_order(spi_cfg->operation)); in configure()