pub fn is_connected(&mut self) -> Result<bool, TransferError<SPIErr, PinErr>> {
        let setup = self.read_register(Register::SETUP_AW)?;
        if (1..=3).contains(&setup) {
            Ok(true)
        } else {
            Ok(false)
        }
    }
/// Checks if the chip is connected to the SPI bus.
/// # Examples
/// ```rust
/// if !chip.is_connected()? {
///     // Handle disconnection
/// }
/// ```
Checks if the chip is connected to the SPI bus.
Checks if the chip is connected to the SPI bus .
pub fn is_connected(&mut self) -> Result<bool, TransferError<SPIErr, PinErr>> {
        let setup = self.read_register(Register::SETUP_AW)?;
        if (1..=3).contains(&setup) {
            Ok(true)
        } else {
            Ok(false)
        }
    }
pub fn is_connected ( & mut self ) -> Result < bool , TransferError < SPIErr , PinErr > > { let setup = self . read_register ( Register :: SETUP_AW ) ? ; if ( 1 ..= 3 ) . contains ( & setup ) { Ok ( true ) } else { Ok ( false ) } }
Checks if the chip is connected to the SPI bus.
Checks if the chip is connected to the SPI bus .
&mut self
&mut self
examples
```rust
if !chip.is_connected(). {
Handle disconnection
}
```
` ` ` rust if !chip . is_connected () . { Handle disconnection } ` ` `