1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @brief Header containing SPI device interface specific declarations for the
9  * Zephyr OS layer of the Wi-Fi driver.
10  */
11 
12 /* SPIM driver config */
13 
14 int spim_init(struct qspi_config *config);
15 
16 int spim_deinit(void);
17 
18 int spim_write(unsigned int addr, const void *data, int len);
19 
20 int spim_read(unsigned int addr, void *data, int len);
21 
22 int spim_hl_read(unsigned int addr, void *data, int len);
23 
24 int spim_cmd_rpu_wakeup_fn(uint32_t data);
25 
26 int spim_wait_while_rpu_awake(void);
27 
28 int spi_validate_rpu_wake_writecmd(void);
29 
30 int spim_cmd_sleep_rpu_fn(void);
31 
32 int spim_RDSR1(const struct device *dev, uint8_t *rdsr1);
33 
34 int spim_RDSR2(const struct device *dev, uint8_t *rdsr2);
35 
36 int spim_WRSR2(const struct device *dev, const uint8_t wrsr2);
37