Struct pandacan::Panda [−][src]
Implementations
impl<'a> Panda<'a>
[src]
pub fn new(context: &'a Context, timeout: Duration) -> Panda<'a>
[src]
pub fn health(&self) -> Result<Health, Error>
[src]
pub fn set_safety_model(
&self,
safety_model: SafetyModel,
safety_param: u16
) -> Result<(), Error>
[src]
&self,
safety_model: SafetyModel,
safety_param: u16
) -> Result<(), Error>
pub fn set_unsafe_mode(&self, unsafe_mode: UnsafeMode) -> Result<(), Error>
[src]
pub fn set_fan_speed(&self, fan_speed: u16) -> Result<(), Error>
[src]
pub fn get_fan_speed(&self) -> Result<u16, Error>
[src]
pub fn set_ir_pwr(&self, ir_pwr: u16) -> Result<(), Error>
[src]
pub fn set_loopback(&self, loopback: bool) -> Result<(), Error>
[src]
pub fn set_power_saving(&self, power_saving: bool) -> Result<(), Error>
[src]
pub fn set_usb_power_mode(&self, power_mode: UsbPowerMode) -> Result<(), Error>
[src]
pub fn send_heartbeat(&self) -> Result<(), Error>
[src]
pub fn get_fw_version(&self) -> Result<[u8; 128], Error>
[src]
pub fn get_serial(&self) -> Result<String, Error>
[src]
pub fn get_hw_type(&self) -> Result<HwType, Error>
[src]
pub fn get_rtc(&self) -> Result<RtcTime, Error>
[src]
pub fn can_receive(&self) -> Result<Vec<CanMessage>, Error>
[src]
pub fn can_send(&self, can_data: Vec<CanMessage>) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Panda<'a>
impl<'a> Send for Panda<'a>
impl<'a> Sync for Panda<'a>
impl<'a> Unpin for Panda<'a>
impl<'a> UnwindSafe for Panda<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,