Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
qspi_if.h File Reference
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>

Go to the source code of this file.

Data Structures

struct  qspi_config
 
struct  qspi_dev
 

Macros

#define RPU_WAKEUP_NOW   BIT(0) /* WAKEUP RPU - RW */
 Header containing QSPI device interface specific declarations for the Zephyr OS layer of the Wi-Fi driver.
 
#define RPU_AWAKE_BIT   BIT(1) /* RPU AWAKE FROM SLEEP - RO */
 
#define RPU_READY_BIT   BIT(2) /* RPU IS READY - RO*/
 
#define QSPI_KEY_LEN_BYTES   16
 

Functions

int qspi_cmd_wakeup_rpu (const struct device *dev, uint8_t data)
 
int qspi_init (struct qspi_config *config)
 
int qspi_write (unsigned int addr, const void *data, int len)
 
int qspi_read (unsigned int addr, void *data, int len)
 
int qspi_hl_read (unsigned int addr, void *data, int len)
 
int qspi_deinit (void)
 
void gpio_free_irq (int pin, struct gpio_callback *button_cb_data)
 
int gpio_request_irq (int pin, struct gpio_callback *button_cb_data, void(*irq_handler)())
 
struct qspi_configqspi_defconfig (void)
 
struct qspi_dev * qspi_dev (void)
 
struct qspi_configqspi_get_config (void)
 
int qspi_cmd_sleep_rpu (const struct device *dev)
 
void hard_reset (void)
 
void get_sleep_stats (uint32_t addr, uint32_t *buff, uint32_t wrd_len)
 
int qspi_validate_rpu_wake_writecmd (const struct device *dev)
 
int qspi_wait_while_rpu_awake (const struct device *dev)
 
int qspi_RDSR1 (const struct device *dev, uint8_t *rdsr1)
 
int qspi_RDSR2 (const struct device *dev, uint8_t *rdsr2)
 
int qspi_WRSR2 (const struct device *dev, const uint8_t wrsr2)
 
int qspi_enable_encryption (uint8_t *key)
 Enable encryption.
 

Variables

struct device qspi_perip
 

Macro Definition Documentation

◆ QSPI_KEY_LEN_BYTES

#define QSPI_KEY_LEN_BYTES   16

◆ RPU_AWAKE_BIT

#define RPU_AWAKE_BIT   BIT(1) /* RPU AWAKE FROM SLEEP - RO */

◆ RPU_READY_BIT

#define RPU_READY_BIT   BIT(2) /* RPU IS READY - RO*/

◆ RPU_WAKEUP_NOW

#define RPU_WAKEUP_NOW   BIT(0) /* WAKEUP RPU - RW */

Header containing QSPI device interface specific declarations for the Zephyr OS layer of the Wi-Fi driver.

Function Documentation

◆ get_sleep_stats()

void get_sleep_stats ( uint32_t addr,
uint32_t * buff,
uint32_t wrd_len )

◆ gpio_free_irq()

void gpio_free_irq ( int pin,
struct gpio_callback * button_cb_data )

◆ gpio_request_irq()

int gpio_request_irq ( int pin,
struct gpio_callback * button_cb_data,
void(* irq_handler )() )

◆ hard_reset()

void hard_reset ( void )

◆ qspi_cmd_sleep_rpu()

int qspi_cmd_sleep_rpu ( const struct device * dev)

◆ qspi_cmd_wakeup_rpu()

int qspi_cmd_wakeup_rpu ( const struct device * dev,
uint8_t data )

◆ qspi_defconfig()

struct qspi_config * qspi_defconfig ( void )

◆ qspi_deinit()

int qspi_deinit ( void )

◆ qspi_dev()

struct qspi_dev * qspi_dev ( void )

◆ qspi_enable_encryption()

int qspi_enable_encryption ( uint8_t * key)

Enable encryption.

Parameters
keyPointer to the 128-bit key
Returns
0 on success, negative errno code on failure.

◆ qspi_get_config()

struct qspi_config * qspi_get_config ( void )

◆ qspi_hl_read()

int qspi_hl_read ( unsigned int addr,
void * data,
int len )

◆ qspi_init()

int qspi_init ( struct qspi_config * config)

◆ qspi_RDSR1()

int qspi_RDSR1 ( const struct device * dev,
uint8_t * rdsr1 )

◆ qspi_RDSR2()

int qspi_RDSR2 ( const struct device * dev,
uint8_t * rdsr2 )

◆ qspi_read()

int qspi_read ( unsigned int addr,
void * data,
int len )

◆ qspi_validate_rpu_wake_writecmd()

int qspi_validate_rpu_wake_writecmd ( const struct device * dev)

◆ qspi_wait_while_rpu_awake()

int qspi_wait_while_rpu_awake ( const struct device * dev)

◆ qspi_write()

int qspi_write ( unsigned int addr,
const void * data,
int len )

◆ qspi_WRSR2()

int qspi_WRSR2 ( const struct device * dev,
const uint8_t wrsr2 )

Variable Documentation

◆ qspi_perip

struct device qspi_perip
extern