Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rpu_hw_if.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef __RPU_HW_IF_H_
13#define __RPU_HW_IF_H_
14
15#include <stdio.h>
16#include <stdlib.h>
17#include <zephyr/drivers/gpio.h>
18
19enum {
20 SYSBUS = 0,
32};
33
34extern char blk_name[][15];
35extern uint32_t rpu_7002_memmap[][3];
36
37int rpu_read(unsigned int addr, void *data, int len);
38int rpu_write(unsigned int addr, const void *data, int len);
39
40int rpu_sleep(void);
41int rpu_wakeup(void);
43void rpu_get_sleep_stats(uint32_t addr, uint32_t *buff, uint32_t wrd_len);
44int rpu_irq_config(struct gpio_callback *irq_callback_data, void (*irq_handler)());
45int rpu_irq_remove(struct gpio_callback *irq_callback_data);
46
48int rpu_rdsr2(void);
49int rpu_rdsr1(void);
50int rpu_clks_on(void);
51
52int rpu_init(void);
53int rpu_enable(void);
54int rpu_disable(void);
55
56#ifdef CONFIG_NRF70_SR_COEX_RF_SWITCH
57int sr_ant_switch(unsigned int ant_switch);
58int sr_gpio_remove(void);
59int sr_gpio_config(void);
60#endif /* CONFIG_NRF70_SR_COEX_RF_SWITCH */
61#endif /* __RPU_HW_IF_H_ */
Public APIs for GPIO drivers.
int rpu_irq_remove(struct gpio_callback *irq_callback_data)
int rpu_clks_on(void)
int rpu_wrsr2(uint8_t data)
void rpu_get_sleep_stats(uint32_t addr, uint32_t *buff, uint32_t wrd_len)
int rpu_irq_config(struct gpio_callback *irq_callback_data, void(*irq_handler)())
int rpu_rdsr2(void)
int rpu_rdsr1(void)
int rpu_sleep(void)
int rpu_write(unsigned int addr, const void *data, int len)
int rpu_read(unsigned int addr, void *data, int len)
int rpu_wakeup(void)
int rpu_sleep_status(void)
@ UMAC_RET_RAM
Definition rpu_hw_if.h:29
@ UMAC_ROM
Definition rpu_hw_if.h:28
@ SYSBUS
Definition rpu_hw_if.h:20
@ LMAC_RET_RAM
Definition rpu_hw_if.h:26
@ GRAM
Definition rpu_hw_if.h:24
@ PBUS
Definition rpu_hw_if.h:22
@ NUM_MEM_BLOCKS
Definition rpu_hw_if.h:31
@ PKTRAM
Definition rpu_hw_if.h:23
@ LMAC_SRC_RAM
Definition rpu_hw_if.h:27
@ UMAC_SRC_RAM
Definition rpu_hw_if.h:30
@ LMAC_ROM
Definition rpu_hw_if.h:25
@ EXT_SYS_BUS
Definition rpu_hw_if.h:21
char blk_name[][15]
int rpu_enable(void)
int rpu_disable(void)
int rpu_init(void)
uint32_t rpu_7002_memmap[][3]
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
GPIO callback structure.
Definition gpio.h:741