/************************************************************************* $Archive: /PACS/OnBoard/m_smcstr.h $ $Revision: 1.10 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: m_smcstr.h,v $ Revision 1.10 2009/04/23 13:51:12 amazy 6.029 * * 2 28/08/02 11:49 Amazy * Added the header with the history log *************************************************************************/ /***************************************************************************** * * Project name: Herschel PACS DEC-MEC * Product name: DM_LLDRV * Object name: m_smcstr * Filename: %M% * Language: C (ADSP-21020) * Compiler: G21K - r3.3 * Company: CRISA * Author: F. Torrero * Version: %I% * Creation date: 25/Mar/2002 * Last Modification date: %G% * * Description =============================================================== * * This module implements the transmission/reception functions for two * SMCS chips * * Change log =============================================================== * * | DATE | NEW VERSION | AUTHOR | REASON FOR CHANGE | * =========================================================================== * * 25/Mar/02 1 F.Torrero Creation * * ****************************************************************************/ #ifndef M_SMCSTR_H #define M_SMCSTR_H /***************************************************************************** INCLUDES *****************************************************************************/ #include "l_gendef.h" /***************************************************************************** PROVIDED CONSTANTS *****************************************************************************/ /* End of packet token identifiers */ #define K_EOP1 1 #define K_EOP2 2 /***************************************************************************** PROVIDED TYPES *****************************************************************************/ /***************************************************************************** PROVIDED VARIABLES *****************************************************************************/ /***************************************************************************** DECLARATION OF PROVIDED FUNCTIONS *****************************************************************************/ T_SR DSMCS_StartChannelAsMaster(T_UNSIGNED_32 Channel); T_SR DSMCS_StartChannelAsSlave(T_UNSIGNED_32 Channel); T_SR DSMCS_TransmitBuffer(T_UNSIGNED_32 Channel, T_UNSIGNED_32 EndOfPacketType, T_UNSIGNED_32 PacketStartAddress, T_UNSIGNED_32 PacketLength); T_SR DSMCS_ReceiveBuffer(T_UNSIGNED_32 Channel, T_UNSIGNED_32 PacketStartAddress, T_UNSIGNED_32 PacketLength); T_SR DSMCS_GetCurrentTxAddress(T_UNSIGNED_32 Channel, T_UNSIGNED_32 *TxCurrentAddress); T_SR DSMCS_GetCurrentRxAddress(T_UNSIGNED_32 Channel, T_UNSIGNED_32 *RxCurrentAddress); T_SR DSMCS_GetChannelStatus(T_UNSIGNED_32 Channel, T_UNSIGNED_32 *CHx_DSM_STARRegisterValue); T_SR DSMCS_GetSMCSErrorSourceReg1(T_UNSIGNED_32 Channel, T_UNSIGNED_32 *CHx_ESR1RegisterValue); #endif /* M_SMCSTR_H */