#ifndef BIWAK_STM32_SPI_HPP
#define BIWAK_STM32_SPI_HPP
//----------------------------------------------------------------------------
///
/// \brief  SPI
///
///         See implementation files for further information.
//
/// \date   20210903
/// \author Maximilian Seesslen <mes@seesslen.net>
///
//----------------------------------------------------------------------------


//---Includes-----------------------------------------------------------------


//---Own------------------------------

#include <biwak/spi.hpp>


//---Declaration--------------------------------------------------------------


struct SSpiConfig{
   //SPI_HandleTypeDef handler;
   SPI_TypeDef *instance;
   IRQn_Type irqn;
   //EAltFunc _eAltFunc;

   /*
   int altFunc;
   EGpioPeripheral   eGpioPeripheralSck;
   EGpioPin          eGpioPinSck;
   EGpioPeripheral   eGpioPeripheralMiso;
   EGpioPin          eGpioPinMiso;
   EGpioPeripheral   eGpioPeripheralMosi;
   EGpioPin          eGpioPinMosi;
   */

   #if defined ( BIWAK_USE_SPI_NSS )
   EGpioPeripheral   eGpioPeripheralNss;
   EGpioPin          eGpioPinNss;
   #endif
};


//---fin----------------------------------------------------------------------
#endif // ? ! BIWAK_STM32_SPI_HPP
