Module pca9702

Module pca9702 

Source
Expand description

Support for the PCA9702 “8-Bit Input-Only Expander with SPI”

Datasheet: https://www.nxp.com/docs/en/data-sheet/PCA9701_PCA9702.pdf

The PCA9702 offers eight input pins, with an interrupt output that can be asserted when one or more of the inputs change state (enabled via the INT_EN pin). The device reads its inputs on each falling edge of CS and then presents them on SDOUT bit-by-bit as the clock (SCLK) rises.

Because the PCA9702 is strictly input-only, there is no way to drive output values or configure directions. Consequently, calling methods that attempt to write or read back “set” states (e.g., set(), is_set()) will return an error.

Structs§

Driver
Internal driver struct for PCA9702.
Parts
Container for all 8 input pins on the PCA9702.
Pca9702
An 8-bit input-only expander with SPI, based on the PCA9702.
Pca9702Bus
Bus wrapper type for PCA9702, implementing Pca9702BusTrait.

Traits§

Pca9702BusTrait
Trait for the underlying PCA9702 SPI bus. Simpler than e.g. MCP23S17 because PCA9702 is read-only and has no register-based protocol.