Skip to main content

DummyBoard

Struct DummyBoard 

Source
pub struct DummyBoard {
    pub current_time_us: u64,
}

Fields§

§current_time_us: u64

Trait Implementations§

Source§

impl BoardIo for DummyBoard

Source§

fn clock_micros(&self) -> u64

Returns the current dummy time in microseconds.

Source§

fn update_sensor_bus<R: FlightFloat>(&mut self, sensors: &mut SensorBus<R>)

Source§

fn serial_rx_read( &mut self, _buf: &mut [u8], ) -> Option<Result<usize, TelemError>>

Source§

fn serial_tx_write(&mut self, bytes: &[u8]) -> Option<Result<usize, TelemError>>

Source§

fn clock_millis(&self) -> u32

Source§

fn set_test_pin_1(&mut self, _high: bool)

Source§

fn set_test_pin_2(&mut self, _high: bool)

Source§

fn set_test_pin_3(&mut self, _high: bool)

Source§

fn imu_pending(&self) -> bool

Source§

fn update_imu_sensor<R: FlightFloat>(&mut self, sensors: &mut SensorBus<R>)

Source§

fn update_service_sensor_bus<R: FlightFloat>( &mut self, sensors: &mut SensorBus<R>, )

Source§

fn serial_tx_write_priority( &mut self, bytes: &[u8], _priority: SerialTxPriority, ) -> Option<Result<usize, TelemError>>

Source§

fn serial_rx_frame_read(&mut self) -> Option<Result<SerialRxFrame, TelemError>>

Source§

fn serial_rx_pending(&self) -> bool

Source§

fn read_params(&mut self, _params: &mut Params) -> bool

Source§

fn write_params(&mut self, _params: &Params) -> bool

Source§

fn sensors_errors_count(&self) -> u16

Source§

fn sensors_errors_message(&self, _index: u16) -> Option<[u8; 50]>

Source§

fn serial_flush(&mut self)

Source§

fn serial_flush_budgeted(&mut self, _max_units: usize)

Source§

fn led0_on(&mut self)

Source§

fn led0_off(&mut self)

Source§

fn led0_toggle(&mut self)

Source§

fn led1_on(&mut self)

Source§

fn led1_off(&mut self)

Source§

fn led1_toggle(&mut self)

Source§

fn backup_memory_read(&mut self) -> Option<BackupData>

Source§

fn backup_memory_write(&mut self, _data: BackupData) -> bool

Source§

fn backup_memory_clear(&mut self) -> bool

Source§

fn reboot(&mut self) -> bool

Source§

fn reboot_to_bootloader(&mut self) -> bool

Source§

fn run_deferred_board_actions(&mut self)

Source§

impl Default for DummyBoard

Source§

fn default() -> DummyBoard

Returns the “default value” for a type. 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> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.