I need to communicate with a sensor through SPI. However, in order for the sensor to switch to SPI mode, its CS pin must go down. So before I do SPI transfer, I clear that CS pin; and set it again after transfer is done.
// init function
nrf_gpio_cfg_output…