/***********************************************************************************************************************
 *  FILE DESCRIPTION
 *  ------------------------------------------------------------------------------------------------------------------*/
/** \file
 *  \brief       ARLE Data decompression according to Gm Global Bootloader Spec
 *
 *  --------------------------------------------------------------------------------------------------------------------
 *  COPYRIGHT
 *  --------------------------------------------------------------------------------------------------------------------
 *  \par Copyright
 *  \verbatim
 *  Copyright (c) 2016 by Vector Informatik GmbH.                                                  All rights reserved.
 *
 *                This software is copyright protected and proprietary to Vector Informatik GmbH.
 *                Vector Informatik GmbH grants to you only those rights as set out in the license conditions.
 *                All other rights remain with Vector Informatik GmbH.
 *  \endverbatim
 */
/**********************************************************************************************************************/

/***********************************************************************************************************************
 *  AUTHOR IDENTITY
 *  --------------------------------------------------------------------------------------------------------------------
 *  Name                          Initials      Company
 *  --------------------------------------------------------------------------------------------------------------------
 *  Andreas Wenckebach            AWH           Vector Informatik GmbH
 *  --------------------------------------------------------------------------------------------------------------------
 *  REVISION HISTORY
 *  --------------------------------------------------------------------------------------------------------------------
 *  Version    Date        Author  Change Id        Description
 *  --------------------------------------------------------------------------------------------------------------------
 *  01.00.00   2015-01-15  AWh     -                Creation
 *  01.01.00   2015-07-23  AWh     ESCAN00082223    The bootloader does not download a compressed application and
 *                                                   reports Programming Error code Err_LengthExceeded
 *  01.02.00   2015-11-23  AWh     ESCAN00086685    No changes
 *                                 ESCAN00086691    No changes
 *                                 ESCAN00086700    Include cmpr.h to avoid compile error if compression is disabled
 *  01.02.01   2016-02-15  AWh     ESCAN00088294    No changes
 **********************************************************************************************************************/

#ifndef __SYSSERVICE_CMPRARLE_GM_H__
#define __SYSSERVICE_CMPRARLE_GM_H__

/***********************************************************************************************************************
 *  VERSION
 **********************************************************************************************************************/

/* ##V_CFG_MANAGEMENT ##CQProject : SysService_CmprArle_Gm CQComponent : Implementation */
#define SYSSERVICE_CMPRARLE_GM_VERSION           0x0102u
#define SYSSERVICE_CMPRARLE_GM_RELEASE_VERSION   0x01u

/***********************************************************************************************************************
 *  GLOBAL FUNCTION PROTOTYPES
 **********************************************************************************************************************/

#if defined ( FBL_ENABLE_COMPRESSION_MODE )
tFblResult CmprArleInit( void );
tFblResult CmprArleDecompress( V_MEMRAM1 tProcParam V_MEMRAM2 V_MEMRAM3 * procParam, vuint16 outThreshold );
tFblResult CmprArleReadCmprHeader( V_MEMRAM1 tFblLength V_MEMRAM2 V_MEMRAM3 * cmprLength,
                                   const V_MEMRAM1 vuint8 V_MEMRAM2 V_MEMRAM3 * cmprBuffer,
                                   V_MEMRAM1 vuint16 V_MEMRAM2 V_MEMRAM3 * cmprDataOffset );
#endif /* FBL_ENABLE_COMPRESSION_MODE */

#endif /* __SYSSERVICE_CMPRARLE_GM_H__ */

/***********************************************************************************************************************
 *  END OF FILE: CMPR.H
 **********************************************************************************************************************/
