#ifndef __COM_BUF_H__ #define __COM_BUF_H__ //***************************************************************************** // (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 ComBuf.h /// /// \brief /// /// \descr /// /// Additional information can be found in the design description (Link: /// MDDD) /// /// \author Ramona-Andreea Bolboaca (f33613c) /// mailTo:ramona-andreea.bolboaca(at)magnetimarelli.com //----------------------------------------------------------------------------- //============================================================================= // Includes //============================================================================= #include "ComBufTcb.h" //============================================================================= // Public functions declarations //============================================================================= void ComBuf_GetMsgContext ( ComBufID bufID, uint8_t cmdLevel, uint8_t *ucSID, MsgContextType *pMsgContext ); BufReq_ReturnType ComBuf_TxProvide ( ComBufID bufID, PduInfoTypeComBufPtr* PduInfoPtr ); PduInfoTypeComBufPtr ComBuf_TxGetBuffer ( ComBufID bufID ); uint16 ComBuf_TxGetBufferSize ( ComBufID bufID ); void ComBuf_TxReset ( ComBufID bufID ); uint16 ComBuf_TxAdd ( ComBufID bufID, const uint8_t data ); void ComBuf_TxNegResp ( ComBufID bufID, uint8 ucSID, uint8 NegCode ); void ComBuf_TxPosResp ( ComBufID bufID, uint8_t cmdLevel, uint8 ucSID, MsgContextType *pMsgContext ); void ComBuf_TxSend ( ComBufID bufID ); uint16 ComBuf_AddToMsgContext ( MsgContextType *pMsgContext, const uint8_t data ); uint16 ComBuf_AddToMsgContextMultiByte (MsgContextType *pMsgContext, const uint8_t *pData, uint16 unLen, boolean boMotorolaByteOrder); BufReq_ReturnType ComBuf_RxProvide ( ComBufID bufID, PduInfoTypeComBufPtr* PduInfoPtr ); PduInfoTypeComBufPtr ComBuf_RxGetBuffer ( ComBufID bufID ); uint16 ComBuf_RxGetBufferSize ( ComBufID bufID ); boolean ComBuf_RxRequestReceived( ComBufID bufID ); void ComBuf_RxIndication ( ComBufID bufID, NotifResultType Result ); #endif // __COM_BUF_H__