pub type nrf_radio_signal_callback_t = Option<unsafe extern "C" fn(signal_type: u8) -> *mut nrf_radio_signal_callback_return_param_t>;
Expand description

@brief The radio timeslot signal callback type.

@note In case of invalid return parameters, the radio timeslot will automatically end immediately after returning from the signal callback and the @ref NRF_EVT_RADIO_SIGNAL_CALLBACK_INVALID_RETURN event will be sent. @note The returned struct pointer must remain valid after the signal callback function returns. For instance, this means that it must not point to a stack variable.

@param[in] signal_type Type of signal, see @ref NRF_RADIO_CALLBACK_SIGNAL_TYPE.

@return Pointer to structure containing action requested by the application.

Aliased Type§

enum nrf_radio_signal_callback_t {
    None,
    Some(unsafe extern "C" fn(_: u8) -> *mut nrf_radio_signal_callback_return_param_t),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: u8) -> *mut nrf_radio_signal_callback_return_param_t)

Some value of type T.