//***************************************************************************** // (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 CddSbc.cpp /// /// \brief /// /// \descr /// /// \author Alex Mertic (f98665c) /// mailTo:alexandru-laurentiu.mertic(at)marelli.com //----------------------------------------------------------------------------- //============================================================================= // includes //============================================================================= #include //============================================================================= // variables //============================================================================= //============================================================================= // functions //============================================================================= //----------------------------------------------------------------------------- // \brief read_write_reg // // \descr This function is responsible writing and reading the SBC registers // based on existing configuration // // \param SpiRequest - type of request Read - 0, Write - 1 // pucAddr - pointer to Stp reg addr // pucTxData - pointer to data to be sent ovet SPI, discarded if read request // punRxData - pinter to received data over SPI // // \return ucRet - error code //----------------------------------------------------------------------------- uint8 cdd::sbc::read_write_reg(teCddSbcSpiReqType SpiRequest, uint8 *pucAddr, uint8 *pucTxData, uint16 *punRxData) { return cdd::sbc::tle9471::read_write_reg(SpiRequest, pucAddr, pucTxData, punRxData); } //----------------------------------------------------------------------------- // \brief sbc::init // // \descr This function is responsible initializing SBC registers // based on existing defines // \return void //----------------------------------------------------------------------------- void cdd::sbc::init() { #ifdef CDDSBC_TLE9741 cdd::scb::tle9471::Init(); #endif }