Struct libftd2xx_cc1101::Status [−][src]
pub struct Status { /* fields omitted */ }
Expand description
Implementations
Returns the value of chip_rdy_n.
pub fn chip_rdy_n_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn chip_rdy_n_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of chip_rdy_n.
#Errors
If the returned value contains an invalid bit pattern for chip_rdy_n.
Returns a copy of the bitfield with the value of chip_rdy_n set to the given value.
#Panics
If the given value is out of bounds for chip_rdy_n.
pub fn with_chip_rdy_n_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_chip_rdy_n_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of chip_rdy_n set to the given value.
#Errors
If the given value is out of bounds for chip_rdy_n.
Sets the value of chip_rdy_n to the given value.
#Panics
If the given value is out of bounds for chip_rdy_n.
pub fn set_chip_rdy_n_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_chip_rdy_n_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of chip_rdy_n to the given value.
#Errors
If the given value is out of bounds for chip_rdy_n.
pub fn state_or_err(
&self
) -> Result<<State as Specifier>::InOut, InvalidBitPattern<<State as Specifier>::Bytes>>
pub fn state_or_err(
&self
) -> Result<<State as Specifier>::InOut, InvalidBitPattern<<State as Specifier>::Bytes>>
Returns the value of state.
#Errors
If the returned value contains an invalid bit pattern for state.
Returns a copy of the bitfield with the value of state set to the given value.
#Panics
If the given value is out of bounds for state.
pub fn with_state_checked(
self,
new_val: <State as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_state_checked(
self,
new_val: <State as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of state set to the given value.
#Errors
If the given value is out of bounds for state.
Sets the value of state to the given value.
#Panics
If the given value is out of bounds for state.
pub fn set_state_checked(
&mut self,
new_val: <State as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_state_checked(
&mut self,
new_val: <State as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of state to the given value.
#Errors
If the given value is out of bounds for state.
Returns the value of fifo_bytes_available.
pub fn fifo_bytes_available_or_err(
&self
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
pub fn fifo_bytes_available_or_err(
&self
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of fifo_bytes_available.
#Errors
If the returned value contains an invalid bit pattern for fifo_bytes_available.
Returns a copy of the bitfield with the value of fifo_bytes_available set to the given value.
#Panics
If the given value is out of bounds for fifo_bytes_available.
pub fn with_fifo_bytes_available_checked(
self,
new_val: <B4 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_fifo_bytes_available_checked(
self,
new_val: <B4 as Specifier>::InOut
) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of fifo_bytes_available set to the given value.
#Errors
If the given value is out of bounds for fifo_bytes_available.
Sets the value of fifo_bytes_available to the given value.
#Panics
If the given value is out of bounds for fifo_bytes_available.
pub fn set_fifo_bytes_available_checked(
&mut self,
new_val: <B4 as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_fifo_bytes_available_checked(
&mut self,
new_val: <B4 as Specifier>::InOut
) -> Result<(), OutOfBounds>
Sets the value of fifo_bytes_available to the given value.
#Errors
If the given value is out of bounds for fifo_bytes_available.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Status
impl UnwindSafe for Status
Blanket Implementations
Mutably borrows from an owned value. Read more