Skip to content

Commit

Permalink
Made RxControlInfo::from_raw public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostie314159 committed Aug 13, 2024
1 parent a191f1f commit cd9bfea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esp-wifi/src/wifi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit cd9bfea

Please sign in to comment.