pub struct Board {
pub start_time: Instant,
/* private fields */
}Fields§
§start_time: InstantImplementations§
Trait Implementations§
Source§impl BoardIo for Board
impl BoardIo for Board
fn set_test_pin_1(&mut self, high: bool)
fn set_test_pin_2(&mut self, high: bool)
fn update_sensor_bus<R: FlightFloat>(&mut self, sensors: &mut SensorBus<R>)
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_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 clock_micros(&self) -> u64
fn read_params(&mut self, params: &mut Params) -> bool
fn write_params(&mut self, params: &Params) -> bool
fn reboot(&mut self) -> bool
fn reboot_to_bootloader(&mut self) -> bool
fn run_deferred_board_actions(&mut self)
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 set_test_pin_3(&mut self, _high: 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
Auto Trait Implementations§
impl Freeze for Board
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnsafeUnpin for Board
impl !UnwindSafe for Board
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.