//***************************************************************************** // (C) Automotive Lighting Reutlingen GmbH // Tuebinger Strasse 123, 72762 Reutlingen, Germany // // Automotive Lighting Reutlingen GmbH owns all the rights to this work. // This work shall not be copied, reproduced, used, modified, transferred // or its information shall not be disclosed without the prior written // authorization of Automotive Lighting Reutlingen GmbH. //***************************************************************************** //----------------------------------------------------------------------------- /// \file CddSpi.h /// /// \brief /// //----------------------------------------------------------------------------- #ifndef CDD_SPI_2020_11_24_H_ #define CDD_SPI_2020_11_24_H_ //============================================================================= // Includes //============================================================================= #include #include //============================================================================= // Public preprocessor definitions //============================================================================= #define CDDSPI_DEVICE(dev) (CddSpi_eDev_##dev) //============================================================================= // Public type definitions //============================================================================= //Device enum #define CDDSPI_MAC_DECL_DEV_ENUM #include #undef CDDSPI_MAC_DECL_DEV_ENUM //============================================================================= // Public function declarations //============================================================================= #if defined(__cplusplus) extern "C" { #endif void CddSpi_Init(void); void CddSpi_DeInit(void); #ifdef CDDSPI_SINGLE_OPERATION boolean CddSpi_TransferMsg(uint8 ucDevice, uint16* punData); #endif #ifdef CDDSPI_CYCLIC_OPERATION void CddSpi_Start(void); void CddSpi_Stop(void); void CddSpi_Cycle1ms(void); #endif #if defined(__cplusplus) } #endif #endif // CDD_SPI_2020_11_24_H_