pub struct PASetBias {
pub set_biases: [f32; 16],
}
Fields§
§set_biases: [f32; 16]
Implementations§
Source§impl PASetBias
impl PASetBias
pub fn read_set_bias() -> Result<Self, PAError>
pub fn set_default_bias() -> Result<(), PAError>
pub fn set_manual_bias(channel: Option<u8>, bias: f32) -> Result<(), PAError>
pub fn set_manual_biases(biases: [f32; 16]) -> Result<(), PAError>
pub fn set_bias() -> Result<(), PAError>
pub fn sipm_temp_comp(ch: usize) -> Result<f32, PAError>
pub fn pb_temp_comp(bias_stc: f32) -> Result<f32, PAError>
pub fn reset_bias() -> Result<(), PAError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PASetBias
impl<'de> Deserialize<'de> for PASetBias
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PASetBias
impl RefUnwindSafe for PASetBias
impl Send for PASetBias
impl Sync for PASetBias
impl Unpin for PASetBias
impl UnwindSafe for PASetBias
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more