Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Group_PeripheralSpiDriver_macro

Macros

#define SPI_PIN_CONFIG(clk, cs, mosi, miso)
 This macro define the parameter "spiGpioCfg" in function "wiced_hal_pspi_init". More...
 

Detailed Description

Macro Definition Documentation

#define SPI_PIN_CONFIG (   clk,
  cs,
  mosi,
  miso 
)
Value:
( (((UINT32)clk&0xff) << SPI_CLK_SHIFT) | \
(((UINT32)cs&0xff) << SPI_CS_SHIFT) | \
(((UINT32)mosi&0xff) << SPI_MOSI_SHIFT) | \
(((UINT32)miso&0xff) << SPI_MISO_SHIFT) )

This macro define the parameter "spiGpioCfg" in function "wiced_hal_pspi_init".

Parameters
clk- SPI CLOCK pin number
mosi- SPI MOSI pin number
miso- SPI MISO pin number
cs- SPI CS pin number