WHD Bus API

group busapi

Allows WHD to operate with specific SDIO/SPI bus.

Functions

uint32_t whd_bus_sdio_attach(whd_driver_t whd_driver, whd_sdio_config_t *whd_config, cyhal_sdio_t *sdio_obj)

Attach the WLAN Device to a specific SDIO bus.

Return

WHD_SUCCESS or Error code

Parameters
  • whd_driver: Pointer to handle instance of the driver

  • whd_config: Configuration for SDIO bus

  • sdio_obj: The SDHC hardware interface, from the Level 3 CY HW APIs

void whd_bus_sdio_detach(whd_driver_t whd_driver)

Detach the WLAN Device to a specific SDIO bus.

Parameters
  • whd_driver: Pointer to handle instance of the driver

uint32_t whd_bus_spi_attach(whd_driver_t whd_driver, whd_spi_config_t *whd_config, cyhal_spi_t *spi_obj)

Attach the WLAN Device to a specific SPI bus.

Return

WHD_SUCCESS or Error code

Parameters
  • whd_driver: Pointer to handle instance of the driver

  • whd_config: Configuration for SPI bus

  • spi_obj: The SPI hardware interface, from the Level 3 CY HW APIs

void whd_bus_spi_detach(whd_driver_t whd_driver)

Detach the WLAN Device to a specific SPI bus.

Parameters
  • whd_driver: Pointer to handle instance of the driver