pub struct DummyBoard {
pub current_time_us: u64,
}Fields§
§current_time_us: u64Trait Implementations§
Source§impl BoardIo for DummyBoard
impl BoardIo for DummyBoard
Source§fn clock_micros(&self) -> u64
fn clock_micros(&self) -> u64
Returns the current dummy time in microseconds.
fn update_sensor_bus<R: FlightFloat>(&mut self, sensors: &mut SensorBus<R>)
fn serial_rx_read( &mut self, _buf: &mut [u8], ) -> Option<Result<usize, TelemError>>
fn serial_tx_write(&mut self, bytes: &[u8]) -> Option<Result<usize, TelemError>>
fn clock_millis(&self) -> u32
fn set_test_pin_1(&mut self, _high: bool)
fn set_test_pin_2(&mut self, _high: bool)
fn set_test_pin_3(&mut self, _high: bool)
fn imu_pending(&self) -> bool
fn update_imu_sensor<R: FlightFloat>(&mut self, sensors: &mut SensorBus<R>)
fn update_service_sensor_bus<R: FlightFloat>( &mut self, sensors: &mut SensorBus<R>, )
fn serial_tx_write_priority( &mut self, bytes: &[u8], _priority: SerialTxPriority, ) -> Option<Result<usize, TelemError>>
fn serial_tx_enqueue_downlink( &mut self, _system_id: u8, _msg: DownlinkMessage, _priority: SerialTxPriority, ) -> Option<Result<usize, TelemError>>
fn serial_rx_frame_read(&mut self) -> Option<Result<SerialRxFrame, TelemError>>
fn serial_rx_pending(&self) -> bool
fn read_params(&mut self, _params: &mut Params) -> bool
fn write_params(&mut self, _params: &Params) -> bool
fn sensors_errors_count(&self) -> u16
fn sensors_errors_message(&self, _index: u16) -> Option<[u8; 50]>
fn serial_flush(&mut self)
fn serial_flush_budgeted(&mut self, _max_units: usize)
fn led0_on(&mut self)
fn led0_off(&mut self)
fn led0_toggle(&mut self)
fn led1_on(&mut self)
fn led1_off(&mut self)
fn led1_toggle(&mut self)
fn backup_memory_read(&mut self) -> Option<BackupData>
fn backup_memory_write(&mut self, _data: BackupData) -> bool
fn backup_memory_clear(&mut self) -> bool
fn reboot(&mut self) -> bool
fn reboot_to_bootloader(&mut self) -> bool
fn run_deferred_board_actions(&mut self)
Source§impl Default for DummyBoard
impl Default for DummyBoard
Source§fn default() -> DummyBoard
fn default() -> DummyBoard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DummyBoard
impl RefUnwindSafe for DummyBoard
impl Send for DummyBoard
impl Sync for DummyBoard
impl Unpin for DummyBoard
impl UnsafeUnpin for DummyBoard
impl UnwindSafe for DummyBoard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
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
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.