[][src]Type Definition rpi_pico_sdk_sys::alarm_callback_t

type alarm_callback_t = Option<unsafe extern "C" fn(id: alarm_id_t, user_data: *mut c_void) -> i64>;

\brief User alarm callback \ingroup alarm \param id the alarm_id as returned when the alarm was added \param user_data the user data passed when the alarm was added \return <0 to reschedule the same alarm this many us from the time the alarm was previously scheduled to fire \return >0 to reschedule the same alarm this many us from the time this method returns \return 0 to not reschedule the alarm