mu_lib 0.2.2

XCENA mu Library
Documentation
//! Clock module providing system clock functionality
//!
//! This module provides functions to retrieve the system clock cycle.

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

pub use crate::bindings::root::getClockCycleRB;

/// Function to get the current system clock cycle
///
/// # Returns
/// * `u32` - The current clock cycle
///
/// # Examples
/// ```
/// use mu_lib::clock::get_clock_cycle;
///
/// let cycle = get_clock_cycle();
/// ```
pub fn get_clock_cycle() -> u32 {
    unsafe { getClockCycleRB() }
}