nrfxlib API 0.1.0
Loading...
Searching...
No Matches
host_rpu_data_if.h
Go to the documentation of this file.
1/*
2 *
3 *Copyright (c) 2022 Nordic Semiconductor ASA
4 *
5 *SPDX-License-Identifier: BSD-3-Clause
6 */
7
16#ifndef __HOST_RPU_DATA_IF_H__
17#define __HOST_RPU_DATA_IF_H__
18
19#include "host_rpu_common_if.h"
20#include "host_rpu_sys_if.h"
21
22#include "pack_def.h"
23
24#define TX_BUF_HEADROOM 52
25
56};
57
64 unsigned int cmd;
66 unsigned int len;
67
68} __NRF_WIFI_PKD;
69
70#define NRF_WIFI_TX_FLAGS_DSCP_TOS_MASK 0xFFFF
71#define NRF_WIFI_TX_FLAGS_DSCP_TOS_SHIFT 0
72#define NRF_WIFI_TX_FLAGS_DSCP_TOS(x) (((x) << NRF_WIFI_TX_FLAGS_DSCP_TOS_SHIFT) & NRF_WIFI_TX_FLAGS_DSCP_TOS_MASK)
73
77};
78
85 signed int umac_fill_flags;
87 unsigned short fc;
89 unsigned char dest[6];
91 unsigned char src[6];
93 unsigned short etype;
95 unsigned int tx_flags;
97 unsigned char more_data;
99 unsigned char eosp;
100} __NRF_WIFI_PKD;
101
109 unsigned short pkt_length;
111 unsigned int ddr_ptr;
112} __NRF_WIFI_PKD;
113
122 unsigned char wdev_id;
124 unsigned char tx_desc_num;
132 unsigned int pending_buf_size;
134 unsigned char num_tx_pkts;
137} __NRF_WIFI_PKD;
138
139#define NRF_WIFI_TX_STATUS_SUCCESS 0
140#define NRF_WIFI_TX_STATUS_FAILED 1
141
150 unsigned char tx_desc_num;
152 unsigned char num_tx_status_code;
154 unsigned char timestamp_t1[6];
156 unsigned char timestamp_t4[6];
158 unsigned char tx_status_code[0];
159} __NRF_WIFI_PKD;
160
173
180 unsigned short descriptor_id;
182 unsigned short rx_pkt_len;
184 unsigned char pkt_type;
186 unsigned char timestamp_t2[6];
188 unsigned char timestamp_t3[6];
189} __NRF_WIFI_PKD;
190
199 signed short rx_pkt_type;
201 unsigned char rate_flags;
205 unsigned char rate;
207 unsigned char wdev_id;
209 unsigned char rx_pkt_cnt;
211 unsigned char reserved;
213 unsigned char mac_header_len;
215 unsigned short frequency;
217 signed short signal;
220} __NRF_WIFI_PKD;
221
230 unsigned int wdev_id;
231
232} __NRF_WIFI_PKD;
233
235#define NRF_WIFI_CLIENT_ACTIVE 0
237#define NRF_WIFI_CLIENT_PS_MODE 1
238
250 unsigned int wdev_id;
252 unsigned char sta_ps_state;
255
256} __NRF_WIFI_PKD;
257
271 unsigned int wdev_id;
275 signed char num_frames;
276
277} __NRF_WIFI_PKD;
278
282#endif /* __HOST_RPU_DATA_IF_H__ */
nrf_wifi_rx_pkt_type
This structure defines the type of received packet.
Definition: host_rpu_data_if.h:165
@ NRF_WIFI_RX_PKT_DATA
Definition: host_rpu_data_if.h:167
@ NRF_WIFI_RAW_RX_PKT
Definition: host_rpu_data_if.h:171
@ NRF_WIFI_RX_PKT_BCN_PRB_RSP
Definition: host_rpu_data_if.h:169
nrf_wifi_tx_flags
Definition: host_rpu_data_if.h:74
@ NRF_WIFI_TX_FLAG_CHKSUM_AVAILABLE
Definition: host_rpu_data_if.h:76
@ NRF_WIFI_TX_FLAG_TWT_EMERGENCY_TX
Definition: host_rpu_data_if.h:75
#define NRF_WIFI_ETH_ADDR_LEN
Definition: host_rpu_sys_if.h:47
nrf_wifi_umac_data_commands
UMAC data interface commands and events.
Definition: host_rpu_data_if.h:30
@ NRF_WIFI_CMD_PM_MODE
Definition: host_rpu_data_if.h:51
@ NRF_WIFI_CMD_RX_BUFF
Definition: host_rpu_data_if.h:38
@ NRF_WIFI_CMD_MGMT_BUFF_CONFIG
Definition: host_rpu_data_if.h:32
@ NRF_WIFI_CMD_CARRIER_ON
Definition: host_rpu_data_if.h:42
@ NRF_WIFI_CMD_TX_BUFF_DONE
Definition: host_rpu_data_if.h:36
@ NRF_WIFI_CMD_CARRIER_OFF
Definition: host_rpu_data_if.h:46
@ NRF_WIFI_CMD_TX_BUFF
Definition: host_rpu_data_if.h:34
@ NRF_WIFI_CMD_PS_GET_FRAMES
Definition: host_rpu_data_if.h:55
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:228
unsigned int wdev_id
Definition: host_rpu_data_if.h:230
This structure provides information about the carrier (interface) state.
Definition: host_rpu_data_if.h:226
unsigned char pkt_type
Definition: host_rpu_data_if.h:184
unsigned short rx_pkt_len
Definition: host_rpu_data_if.h:182
unsigned char timestamp_t3[6]
Definition: host_rpu_data_if.h:188
unsigned char timestamp_t2[6]
Definition: host_rpu_data_if.h:186
unsigned short descriptor_id
Definition: host_rpu_data_if.h:180
This structure provides information about the parameters in the RX data event.
Definition: host_rpu_data_if.h:178
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:197
unsigned char wdev_id
Definition: host_rpu_data_if.h:207
unsigned char rate
Definition: host_rpu_data_if.h:205
struct nrf_wifi_rx_buff_info rx_buff_info[0]
Definition: host_rpu_data_if.h:219
unsigned char reserved
Definition: host_rpu_data_if.h:211
unsigned short frequency
Definition: host_rpu_data_if.h:215
signed short signal
Definition: host_rpu_data_if.h:217
signed short rx_pkt_type
Definition: host_rpu_data_if.h:199
unsigned char mac_header_len
Definition: host_rpu_data_if.h:213
unsigned char rate_flags
Definition: host_rpu_data_if.h:201
unsigned char rx_pkt_cnt
Definition: host_rpu_data_if.h:209
This structure represents RX data event(NRF_WIFI_CMD_RX_BUFF).
Definition: host_rpu_data_if.h:195
unsigned char sta_ps_state
Definition: host_rpu_data_if.h:252
unsigned char mac_addr[6]
Definition: host_rpu_data_if.h:254
unsigned int wdev_id
Definition: host_rpu_data_if.h:250
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:248
This structure describes an event related to the power save state of the softap's client....
Definition: host_rpu_data_if.h:246
unsigned char mac_addr[6]
Definition: host_rpu_data_if.h:273
unsigned int wdev_id
Definition: host_rpu_data_if.h:271
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:269
signed char num_frames
Definition: host_rpu_data_if.h:275
This structure represents an event that instructs the host to transmit a specific number of frames th...
Definition: host_rpu_data_if.h:267
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:148
unsigned char tx_desc_num
Definition: host_rpu_data_if.h:150
unsigned char tx_status_code[0]
Definition: host_rpu_data_if.h:158
unsigned char timestamp_t1[6]
Definition: host_rpu_data_if.h:154
unsigned char num_tx_status_code
Definition: host_rpu_data_if.h:152
unsigned char timestamp_t4[6]
Definition: host_rpu_data_if.h:156
This structure represents the Tx done event(NRF_WIFI_CMD_TX_BUFF_DONE).
Definition: host_rpu_data_if.h:146
unsigned short pkt_length
Definition: host_rpu_data_if.h:109
unsigned int ddr_ptr
Definition: host_rpu_data_if.h:111
This structure provides the information of each packet in the tx command.
Definition: host_rpu_data_if.h:107
unsigned int pending_buf_size
Definition: host_rpu_data_if.h:132
struct nrf_wifi_umac_head umac_head
Definition: host_rpu_data_if.h:120
struct tx_mac_hdr_info mac_hdr_info
Definition: host_rpu_data_if.h:128
unsigned char wdev_id
Definition: host_rpu_data_if.h:122
struct nrf_wifi_tx_buff_info tx_buff_info[0]
Definition: host_rpu_data_if.h:136
unsigned char tx_desc_num
Definition: host_rpu_data_if.h:124
unsigned char num_tx_pkts
Definition: host_rpu_data_if.h:134
This structure provides the parameters for the tx command.
Definition: host_rpu_data_if.h:118
unsigned int len
Definition: host_rpu_data_if.h:66
unsigned int cmd
Definition: host_rpu_data_if.h:64
Data interface Command and Event header.
Definition: host_rpu_data_if.h:62
unsigned char src[6]
Definition: host_rpu_data_if.h:91
unsigned char eosp
Definition: host_rpu_data_if.h:99
unsigned int tx_flags
Definition: host_rpu_data_if.h:95
signed int umac_fill_flags
Definition: host_rpu_data_if.h:85
unsigned short fc
Definition: host_rpu_data_if.h:87
unsigned char dest[6]
Definition: host_rpu_data_if.h:89
unsigned short etype
Definition: host_rpu_data_if.h:93
unsigned char more_data
Definition: host_rpu_data_if.h:97
Tx mac80211 header information.
Definition: host_rpu_data_if.h:83