1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
//! Wi-Fi Channel State Information (CSI).
use alloc::boxed::Box;
use core::marker::PhantomData;
use esp_hal::time::{Duration, Instant};
use super::{WifiError, c_types::c_void};
#[cfg(any(wifi_mac_version = "2", wifi_mac_version = "3"))]
use crate::sys::include::wifi_csi_acquire_config_t;
use crate::{
sys::include::{
esp_wifi_set_csi,
esp_wifi_set_csi_config,
esp_wifi_set_csi_rx_cb,
wifi_csi_config_t,
wifi_csi_info_t,
},
wifi::{SecondaryChannel, esp_wifi_result},
};
/// CSI (Channel State Information) packet metadata and associated packet details.
///
/// This structure contains the raw CSI data, along with necessary metadata
/// from the received Wi-Fi packet (MAC addresses, sequence number, packet headers).
#[repr(transparent)]
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[instability::unstable]
pub struct WifiCsiInfo<'a> {
inner: *const wifi_csi_info_t,
_lt: PhantomData<&'a ()>,
}
impl<'a> WifiCsiInfo<'_> {
/// Received Signal Strength Indicator (RSSI) of the packet.
#[instability::unstable]
pub fn rssi(&self) -> i8 {
// Signed bitfields are broken in rust-bingen, see https://github.com/esp-rs/esp-wifi-sys/issues/482
// Hard-casting it from C-signed to i8 gives correct values, so no need for workaround
// here.
unsafe { (*self.inner).rx_ctrl.rssi() as i8 }
}
/// Data rate of the packet.
#[instability::unstable]
pub fn rate(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.rate() as u8 }
}
/// Protocol of the received packet, 0: non HT(11bg) packet; 1: HT(11n) packet; 3: VHT(11ac)
/// packet.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn packet_mode(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.sig_mode() as u8 }
}
/// Modulation Coding Scheme. If is HT(11n) packet, shows the modulation, range from 0 to
/// 76(MSC0 ~ MCS76).
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn modulation_coding_scheme(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.mcs() as u8 }
}
/// Channel Bandwidth of the packet. 0: 20MHz; 1: 40MHz.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn cwb(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.cwb() != 0 }
}
/// Set to 1 indicates that channel estimate smoothing is recommended.
/// Set to 0 indicates that only per-carrier independent (unsmoothed) channel estimate is
/// recommended.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn smoothing(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.smoothing() != 0 }
}
/// Set to 1 indicates that the PPDU is not a sounding PPDU.
/// Set to 0 indicates that PPDU is a sounding PPDU.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn not_sounding(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.not_sounding() != 0 }
}
/// Aggregation. 0: MPDU packet; 1: AMPDU packet.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn aggregation(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.aggregation() != 0 }
}
/// Space Time Block Code(STBC). 0: non STBC packet; 1: STBC packet.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn space_time_block_code(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.stbc() as u8 }
}
/// Forward Error Correction(FEC). Flag is set for 11n packets which are LDPC.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn forward_error_correction_coding(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.fec_coding() != 0 }
}
/// Short Guide Interval(SGI). 0: Long GI; 1: Short GI.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn short_guide_interval(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.sgi() != 0 }
}
/// Noise floor in dBm of Radio Frequency Module(RF).
#[instability::unstable]
pub fn noise_floor(&self) -> i8 {
unsafe { (*self.inner).rx_ctrl.noise_floor() as i8 }
}
/// The number of subframes aggregated in AMPDU.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn ampdu_count(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.ampdu_cnt() as u8 }
}
/// Primary channel on which this packet is received.
#[instability::unstable]
pub fn channel(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.channel() as u8 }
}
/// [`SecondaryChannel`] on which this packet is received.
#[instability::unstable]
pub fn secondary_channel(&self) -> SecondaryChannel {
cfg_if::cfg_if! {
if #[cfg(wifi_mac_version = "1")] {
SecondaryChannel::from_raw(unsafe {
(*self.inner).rx_ctrl.secondary_channel()
})
} else {
SecondaryChannel::from_raw(unsafe {
(*self.inner).rx_ctrl.second()
})
}
}
}
/// The local time in microseconds when this packet is received. It is precise only if modem
/// sleep or light sleep is not enabled.
#[instability::unstable]
pub fn timestamp(&self) -> Instant {
let raw_ticks = unsafe { (*self.inner).rx_ctrl.timestamp() as u64 };
Instant::EPOCH + Duration::from_micros(raw_ticks)
}
/// Antenna number from which this packet is received.
/// 0: Wi-Fi antenna 0; 1: Wi-Fi antenna 1.
#[instability::unstable]
#[cfg(wifi_mac_version = "1")]
pub fn antenna(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.ant() as u8 }
}
/// The length of the reception MPDU.
#[instability::unstable]
pub fn signal_length(&self) -> u16 {
unsafe { (*self.inner).rx_ctrl.sig_len() as u16 }
}
/// State of the packet.
/// 0: no error; others: failure.
#[instability::unstable]
pub fn rx_state(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.rx_state() as u8 }
}
/// Indicate whether the reception frame is from interface 0.
#[instability::unstable]
#[cfg(esp32c6)]
pub fn rx_match0(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.rxmatch0() != 0 }
}
/// Indicate whether the reception frame is from interface 1.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_match1(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.rxmatch1() != 0 }
}
/// Indicate whether the reception frame is from interface 2.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_match2(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.rxmatch2() != 0 }
}
/// Indicate whether the reception frame is from interface 3.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_match3(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.rxmatch3() != 0 }
}
/// HE-SIGA1 or HT-SIG.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn he_siga1(&self) -> u32 {
unsafe { (*self.inner).rx_ctrl.he_siga1 }
}
/// Reception state, 0: successful, others: failure.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_end_state(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.rxend_state() as u8 }
}
/// HE-SIGA2.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn he_siga2(&self) -> u16 {
unsafe { (*self.inner).rx_ctrl.he_siga2 }
}
/// Indicate whether the reception is a group addressed frame.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn is_group(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.is_group() != 0 }
}
/// The length of the channel information.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_channel_estimate_length(&self) -> u32 {
unsafe { (*self.inner).rx_ctrl.rx_channel_estimate_len() }
}
/// Indicate the channel information is valid.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn rx_channel_estimate_info_valid(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.rx_channel_estimate_info_vld() != 0 }
}
/// The format of the reception frame.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn cur_bb_format(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.cur_bb_format() as u8 }
}
/// Indicate whether the reception MPDU is a S-MPDU.
#[instability::unstable]
#[cfg(wifi_mac_version = "2")]
pub fn cur_single_mpdu(&self) -> bool {
unsafe { (*self.inner).rx_ctrl.cur_single_mpdu() != 0 }
}
/// The length of HE-SIGB.
#[instability::unstable]
#[cfg(wifi_mac_version = "2")]
pub fn he_sigb_length(&self) -> u8 {
unsafe { (*self.inner).rx_ctrl.he_sigb_len() as u8 }
}
/// The length of the reception MPDU excluding the FCS.
#[instability::unstable]
#[cfg(not(wifi_mac_version = "1"))]
pub fn dump_length(&self) -> u32 {
unsafe { (*self.inner).rx_ctrl.dump_len() }
}
/// Source MAC address of the CSI data.
#[instability::unstable]
pub fn mac(&self) -> &[u8; 6] {
unsafe { &(*self.inner).mac }
}
/// Destination MAC address of the CSI data.
#[instability::unstable]
pub fn destination_mac(&self) -> &[u8; 6] {
unsafe { &(*self.inner).dmac }
}
/// First four bytes of the CSI data is invalid or not, true indicates the first four bytes is
/// invalid due to hardware limitation.
#[instability::unstable]
pub fn first_word_invalid(&self) -> bool {
unsafe { (*self.inner).first_word_invalid }
}
/// Valid buffer of CSI data.
#[instability::unstable]
pub fn buf(&self) -> &[i8] {
unsafe {
if (*self.inner).buf.is_null() || (*self.inner).len == 0 {
&[]
} else {
core::slice::from_raw_parts((*self.inner).buf, (*self.inner).len as usize)
}
}
}
/// Header of the wifi packet.
#[instability::unstable]
pub fn header(&self) -> &[u8] {
unsafe {
if (*self.inner).hdr.is_null() {
&[]
} else {
const HDR_LEN: usize = 24;
core::slice::from_raw_parts((*self.inner).hdr, HDR_LEN)
}
}
}
/// Payload of the wifi packet.
#[instability::unstable]
pub fn payload(&self) -> &[u8] {
unsafe {
if (*self.inner).payload.is_null() || (*self.inner).payload_len == 0 {
&[]
} else {
core::slice::from_raw_parts(
(*self.inner).payload,
(*self.inner).payload_len as usize,
)
}
}
}
/// Rx sequence number of the wifi packet.
#[instability::unstable]
pub fn rx_sequence(&self) -> u16 {
unsafe { (*self.inner).rx_seq }
}
}
pub(crate) trait CsiCallback: FnMut(WifiCsiInfo<'_>) {}
impl<T> CsiCallback for T where T: FnMut(WifiCsiInfo<'_>) {}
unsafe extern "C" fn csi_rx_cb<C: CsiCallback>(ctx: *mut c_void, data: *mut wifi_csi_info_t) {
unsafe {
let csi_callback = &mut *(ctx as *mut C);
let data = WifiCsiInfo {
inner: data,
_lt: PhantomData,
};
csi_callback(data);
}
}
/// Channel state information (CSI) configuration.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[cfg(wifi_mac_version = "1")]
#[instability::unstable]
pub struct CsiConfig {
/// Enable to receive legacy long training field(lltf) data.
pub lltf_en: bool,
/// Enable to receive HT long training field(htltf) data.
pub htltf_en: bool,
/// Enable to receive space time block code HT long training
/// field(stbc-htltf2) data.
pub stbc_htltf2_en: bool,
/// Enable to generate htlft data by averaging lltf and ht_ltf data when
/// receiving HT packet. Otherwise, use ht_ltf data directly.
pub ltf_merge_en: bool,
/// Enable to turn on channel filter to smooth adjacent sub-carrier. Disable
/// it to keep independence of adjacent sub-carrier.
pub channel_filter_en: bool,
/// Manually scale the CSI data by left shifting or automatically scale the
/// CSI data. If set true, please set the shift bits. false: automatically.
/// true: manually.
pub manu_scale: bool,
/// Manually left shift bits of the scale of the CSI data. The range of the
/// left shift bits is 0~15.
pub shift: u8,
/// Enable to dump 802.11 ACK frame.
pub dump_ack_en: bool,
}
/// Channel state information (CSI) configuration.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[cfg(wifi_mac_version = "2")]
#[instability::unstable]
pub struct CsiConfig {
/// Enable to acquire CSI.
pub enable: u32,
/// Enable to acquire L-LTF when receiving a 11g PPDU.
pub acquire_csi_legacy: u32,
/// Enable to acquire HT-LTF when receiving an HT20 PPDU.
pub acquire_csi_ht20: u32,
/// Enable to acquire HT-LTF when receiving an HT40 PPDU.
pub acquire_csi_ht40: u32,
/// Enable to acquire HE-LTF when receiving an HE20 SU PPDU.
pub acquire_csi_su: u32,
/// Enable to acquire HE-LTF when receiving an HE20 MU PPDU.
pub acquire_csi_mu: u32,
/// Enable to acquire HE-LTF when receiving an HE20 DCM applied PPDU.
pub acquire_csi_dcm: u32,
/// Enable to acquire HE-LTF when receiving an HE20 Beamformed applied PPDU.
pub acquire_csi_beamformed: u32,
/// When receiving an STBC applied HE PPDU, 0- acquire the complete
/// HE-LTF1, 1- acquire the complete HE-LTF2, 2- sample evenly among the
/// HE-LTF1 and HE-LTF2.
pub acquire_csi_he_stbc: u32,
/// Value 0-3.
pub val_scale_cfg: u32,
/// Enable to dump 802.11 ACK frame, default disabled.
pub dump_ack_en: u32,
/// Reserved.
pub reserved: u32,
}
/// Channel state information (CSI) configuration.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[cfg(wifi_mac_version = "3")]
#[instability::unstable]
pub struct CsiConfig {
/// Enable to acquire CSI.
pub enable: u32,
/// Enable to acquire L-LTF.
pub acquire_csi_legacy: u32,
/// Enable to acquire L-LTF.
pub acquire_csi_force_lltf: bool,
/// Enable to acquire HT-LTF when receiving an HT20 PPDU.
pub acquire_csi_ht20: u32,
/// Enable to acquire HT-LTF when receiving an HT40 PPDU.
pub acquire_csi_ht40: u32,
/// Enable to acquire VHT-LTF when receiving an VHT20 PPDU.
pub acquire_csi_vht: bool,
/// Enable to acquire HE-LTF when receiving an HE20 SU PPDU.
pub acquire_csi_su: u32,
/// Enable to acquire HE-LTF when receiving an HE20 MU PPDU.
pub acquire_csi_mu: u32,
/// Enable to acquire HE-LTF when receiving an HE20 DCM applied PPDU.
pub acquire_csi_dcm: u32,
/// Enable to acquire HE-LTF when receiving an HE20 Beamformed applied PPDU.
pub acquire_csi_beamformed: u32,
/// When receiving an STBC applied HE PPDU, 0- acquire the complete
/// HE-LTF1, 1- acquire the complete HE-LTF2, 2- sample evenly among the
/// HE-LTF1 and HE-LTF2.
pub acquire_csi_he_stbc: u32,
/// Value 0-3.
pub val_scale_cfg: u32,
/// Enable to dump 802.11 ACK frame, default disabled.
pub dump_ack_en: u32,
/// Reserved.
pub reserved: u32,
}
impl CsiConfig {
/// Set CSI data configuration
pub(crate) fn apply_config(&self) -> Result<(), WifiError> {
let conf: wifi_csi_config_t = self.clone().into();
unsafe { esp_wifi_result!(esp_wifi_set_csi_config(&conf))? };
Ok(())
}
/// Register the RX callback function of CSI data. Each time a CSI data is
/// received, the callback function will be called.
pub(crate) fn set_receive_cb<C>(&mut self, cb: C) -> Result<(), WifiError>
where
C: CsiCallback,
{
let cb = Box::new(cb);
let cb_ptr = Box::into_raw(cb) as *mut c_void;
unsafe { esp_wifi_result!(esp_wifi_set_csi_rx_cb(Some(csi_rx_cb::<C>), cb_ptr))? };
Ok(())
}
/// Enable or disable CSI
pub(crate) fn set_csi(&self, enable: bool) -> Result<(), WifiError> {
// https://github.com/esp-rs/esp-wifi-sys/blob/2a466d96fe8119d49852fc794aea0216b106ba7b/esp-wifi-sys/headers/esp_wifi.h#L1241
unsafe { esp_wifi_result!(esp_wifi_set_csi(enable))? };
Ok(())
}
}
impl Default for CsiConfig {
#[cfg(wifi_mac_version = "1")]
fn default() -> Self {
Self {
lltf_en: true,
htltf_en: true,
stbc_htltf2_en: true,
ltf_merge_en: true,
channel_filter_en: true,
manu_scale: false,
shift: 0,
dump_ack_en: false,
}
}
#[cfg(wifi_mac_version = "2")]
fn default() -> Self {
// https://github.com/esp-rs/esp-wifi-sys/blob/2a466d96fe8119d49852fc794aea0216b106ba7b/esp-wifi-sys/headers/esp_wifi_he_types.h#L67-L82
Self {
enable: 1,
acquire_csi_legacy: 1,
acquire_csi_ht20: 1,
acquire_csi_ht40: 1,
acquire_csi_su: 1,
acquire_csi_mu: 1,
acquire_csi_dcm: 1,
acquire_csi_beamformed: 1,
acquire_csi_he_stbc: 2,
val_scale_cfg: 2,
dump_ack_en: 1,
reserved: 19,
}
}
#[cfg(wifi_mac_version = "3")]
fn default() -> Self {
// https://github.com/esp-rs/esp-wifi-sys/blob/2a466d96fe8119d49852fc794aea0216b106ba7b/esp-wifi-sys/headers/esp_wifi_he_types.h
Self {
enable: 1,
acquire_csi_legacy: 1,
acquire_csi_force_lltf: true,
acquire_csi_ht20: 1,
acquire_csi_ht40: 1,
acquire_csi_vht: true,
acquire_csi_su: 1,
acquire_csi_mu: 1,
acquire_csi_dcm: 1,
acquire_csi_beamformed: 1,
acquire_csi_he_stbc: 2,
val_scale_cfg: 2,
dump_ack_en: 1,
reserved: 0,
}
}
}
#[doc(hidden)]
impl From<CsiConfig> for wifi_csi_config_t {
fn from(config: CsiConfig) -> Self {
#[cfg(wifi_mac_version = "1")]
{
wifi_csi_config_t {
lltf_en: config.lltf_en,
htltf_en: config.htltf_en,
stbc_htltf2_en: config.stbc_htltf2_en,
ltf_merge_en: config.ltf_merge_en,
channel_filter_en: config.channel_filter_en,
manu_scale: config.manu_scale,
shift: config.shift,
dump_ack_en: config.dump_ack_en,
}
}
#[cfg(wifi_mac_version = "2")]
{
wifi_csi_acquire_config_t {
_bitfield_align_1: [0; 0],
_bitfield_1: wifi_csi_acquire_config_t::new_bitfield_1(
config.enable,
config.acquire_csi_legacy,
config.acquire_csi_ht20,
config.acquire_csi_ht40,
config.acquire_csi_su,
config.acquire_csi_mu,
config.acquire_csi_dcm,
config.acquire_csi_beamformed,
config.acquire_csi_he_stbc,
config.val_scale_cfg,
config.dump_ack_en,
config.reserved,
),
}
}
#[cfg(wifi_mac_version = "3")]
{
wifi_csi_acquire_config_t {
_bitfield_align_1: [0; 0],
_bitfield_1: wifi_csi_acquire_config_t::new_bitfield_1(
config.enable,
config.acquire_csi_legacy,
config.acquire_csi_ht20,
config.acquire_csi_ht40,
config.acquire_csi_su,
config.acquire_csi_mu,
config.acquire_csi_dcm,
config.acquire_csi_beamformed,
config.acquire_csi_he_stbc,
config.val_scale_cfg,
config.dump_ack_en,
config.reserved,
0, // dump_ack_en
0, // lltf_bit_mode
0, // reserved
),
}
}
}
}