pub fn set_rx_available_callback_fn(&mut self, callback: fn()) {
        critical_section::with(|cs| {
            let mut rx_available_callback_fn = RX_AVAILABLE_CALLBACK_FN.borrow_ref_mut(cs);
            rx_available_callback_fn.replace(callback);
        });
    }
Set the receive available callback function.
esp-ieee802154/src/lib.rs