Expand description
CYW4343x components.
This provides two components:
CYW4343xSpiBusComponentprovides the SPI implementation for theCYW4343xBusinterfaceCYW4343xComponentprovides the CYW4343 driver
§Usage
// Bus component
let cyw4343_spi_bus = components::cyw4343::CYW4343xSpiBusComponent::new(
mux_alarm, // Mux alarm
pio_gspi, // Should implement the `SpiMasterDevice` interface
fw, nvram, // Firmware buffers
)
.finalize(!components::cyw4343x_spi_bus_component_static!(
PioGSpi<'static>, // Type of the Spi peripheral
RPTimer // Underlying alarm peripheral
));
// ...
// Driver component
let cyw4343_device = components::cyw4343::CYW4343xComponent::new(
pwr, // Power pin
mux_alarm, // Mux alarm
cyw4343_spi_bus, // Bus
clm, // CLM (Country-Locale Matrix) buffer
)
.finalize(components::cyw4343_component_static!(
RPGpioPin,
RPTimer,
CYW4343xSpiBus
));