This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Add delay argument to spi_master_send_recv : Where does the Chipselect get pulled high?

Hello,

for my sensor I need to have a delay BEFORE pulling CS high. So I would like to add an argument to the

spi_master_send_recv()

function that give me exactly this possibility.

But I am not 100% sure where exactly the chipselect pin is triggered.. I tried my best with the debugger and found this line

nrf_gpio_pin_set(p_spi_instance->pin_slave_select);

inside this function:

spi_master_send_recv_irq()

But I have really no clue how this function is called and how I could add my argument to this call.

Related