Struct pxtnMaster

Source
#[repr(C)]
pub struct pxtnMaster { pub _beat_num: i32, pub _beat_tempo: f32, pub _beat_clock: i32, pub _meas_num: i32, pub _repeat_meas: i32, pub _last_meas: i32, pub _volume_: i32, }

Fields§

§_beat_num: i32§_beat_tempo: f32§_beat_clock: i32§_meas_num: i32§_repeat_meas: i32§_last_meas: i32§_volume_: i32

Implementations§

Source§

impl pxtnMaster

Source

pub unsafe fn Reset(&mut self)

Source

pub unsafe fn Set(&mut self, beat_num: i32, beat_tempo: f32, beat_clock: i32)

Source

pub unsafe fn Get( &self, p_beat_num: *mut i32, p_beat_tempo: *mut f32, p_beat_clock: *mut i32, p_meas_num: *mut i32, )

Source

pub unsafe fn get_beat_num(&self) -> i32

Source

pub unsafe fn get_beat_tempo(&self) -> f32

Source

pub unsafe fn get_beat_clock(&self) -> i32

Source

pub unsafe fn get_meas_num(&self) -> i32

Source

pub unsafe fn get_repeat_meas(&self) -> i32

Source

pub unsafe fn get_last_meas(&self) -> i32

Source

pub unsafe fn get_last_clock(&self) -> i32

Source

pub unsafe fn get_play_meas(&self) -> i32

Source

pub unsafe fn set_meas_num(&mut self, meas_num: i32)

Source

pub unsafe fn set_repeat_meas(&mut self, meas: i32)

Source

pub unsafe fn set_last_meas(&mut self, meas: i32)

Source

pub unsafe fn set_beat_clock(&mut self, beat_clock: i32)

Source

pub unsafe fn AdjustMeasNum(&mut self, clock: i32)

Source

pub unsafe fn get_this_clock(&self, meas: i32, beat: i32, clock: i32) -> i32

Source

pub unsafe fn io_w_v5(&self, p_doc: *mut pxtnDescriptor, rough: i32) -> bool

Source

pub unsafe fn io_r_v5(&mut self, p_doc: *mut pxtnDescriptor) -> pxtnERR

Source

pub unsafe fn io_r_v5_EventNum(&mut self, p_doc: *mut pxtnDescriptor) -> i32

Source

pub unsafe fn io_r_x4x(&mut self, p_doc: *mut pxtnDescriptor) -> pxtnERR

Source

pub unsafe fn io_r_x4x_EventNum(&mut self, p_doc: *mut pxtnDescriptor) -> i32

Source

pub unsafe fn new() -> Self

Source

pub unsafe fn destruct(&mut self)

Trait Implementations§

Source§

impl Debug for pxtnMaster

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.