pub fn set_rx_available_callback(&mut self, callback: &'a mut (dyn FnMut() + Send)) {
        critical_section::with(|cs| {
            let mut rx_available_callback = RX_AVAILABLE_CALLBACK.borrow_ref_mut(cs);
            let cb: &'static mut (dyn FnMut() + Send) = unsafe { core::mem::transmute(callback) };
            rx_available_callback.replace(cb);
        });
    }
Set the receive available callback function.
esp-ieee802154/src/lib.rs