From cd9bfeaa7493e7c1590143349bf596e187277092 Mon Sep 17 00:00:00 2001 From: Frostie314159 Date: Tue, 13 Aug 2024 18:10:46 +0200 Subject: [PATCH] Made RxControlInfo::from_raw public. --- esp-wifi/src/wifi/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esp-wifi/src/wifi/mod.rs b/esp-wifi/src/wifi/mod.rs index 774506e71be..821470754e3 100644 --- a/esp-wifi/src/wifi/mod.rs +++ b/esp-wifi/src/wifi/mod.rs @@ -1831,10 +1831,12 @@ pub struct RxControlInfo { pub rxmatch0: u32, } impl RxControlInfo { + /// Create an instance from a raw pointer to [wifi_pkt_rx_ctrl_t]. + /// /// # Safety /// When calling this, you must ensure, that `rx_cntl` points to a valid /// instance of [wifi_pkt_rx_ctrl_t]. - pub(crate) unsafe fn from_raw(rx_cntl: *const wifi_pkt_rx_ctrl_t) -> Self { + pub unsafe fn from_raw(rx_cntl: *const wifi_pkt_rx_ctrl_t) -> Self { #[cfg(not(esp32c6))] let rx_control_info = RxControlInfo { rssi: (*rx_cntl).rssi(),